Data component of Pixort
Things, that are important for the development.
All the packages are cached under dependencies/
. Download a package by:
tools/pip-download-package <package-name>
Setup your production environment by running:
tools/pip-install-dependencies
To also set-up the test requirements, run:
tools/pip-install-dependencies test
To create the tables in the database, execute:
pixort-data-init sqlite:///db
Some comments to flush to a blogpost.
Initial alembic install was:
alembic init pixortdata/migrations -t generic
After that, the file pixortdata/migrations/env.py
had to be modified, namely
the logging configuration was removed.
Another modification was to import the model in env.py
.
Also, the versions directory was required to be created for autogenerated
versions: pixortdata/migrations/versions
To import metadata from a filestore:
python tools/import_metadata_from_filestore.py file:///data/320thumbs sqlite:///db