If your deployment does not use TLS connections
mongod --config /opt/homebrew/etc/mongod.conf --fork
# You can optionally specify the db path
To determine the size of a file at a remote URL without downloading it, you can use an HTTP HEAD request.
This type of request retrieves only the HTTP headers, which often include the Content-Length
header that
indicates the file size in bytes.
curl -sI https://datasets-documentation.s3.eu-west-3.amazonaws.com/uk-house-prices/postgres/uk_prices.sql.tar.gz | awk '/Content-Length/ {
size=$2;
split("B KB MB GB TB", unit);
Create a new DuckDB in-memory connection using DBeaver, specifying the path as :memory:
Create a new script to run your query with, using the connection created
SELECT * FROM parquet_schema('/path/to/parquet/file.parquet');
SELECT * FROM read_parquet('/path/to/parquet/file.parquet');
Here we want to scrape product name, price and rating from ebay product pages:
url = 'https://www.ebay.com/itm/Sony-PlayStation-4-PS4-Pro-1TB-4K-Console-Black/203084236670'
wanted_list = ['Sony PlayStation 4 PS4 Pro 1TB 4K Console - Black', 'US $349.99', '4.8']
scraper.build(url, wanted_list)
When running FastAPI
app, all the logs in console are from Uvicorn
and they do not have timestamp and other useful information. As Uvicorn
applies python logging
module, we can override Uvicorn
logging formatter by applying a new logging configuration.
Meanwhile, it's able to unify the your endpoints logging with the Uvicorn
logging by configuring all of them in the config file log_conf.yaml
.
Before overriding:
uvicorn main:app --reload