Skip to content

matelakat/pixort-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixort-data

Data component of Pixort

Development

Things, that are important for the development.

Package management

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

Database Initialisation

To create the tables in the database, execute:

pixort-data-init sqlite:///db

Database Setup

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

Import Metadata

To import metadata from a filestore:

python tools/import_metadata_from_filestore.py file:///data/320thumbs sqlite:///db

About

Data component of Pixort

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages