Skip to content

wtsi-npg/npgtracking-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npgtracking-python

This package contains an ORM for an existing database schema, which hosts information about sequencing runs. A Perl ORM for the same schema is defined in npg_tracking. Migrations for that schema are also tracked in the Perl package.

The code in this package was tested for read-only operations. Business logic for create and update operation for different database tables is implemented in the Perl package. We advise against performing write operations using this ORM.

This ORM has been auto-generated with sqlacodegen 3.1.1

sqlacodegen --generator declarative mysql+pymysql://user:pass@host:port/dbname > src/npgtracking/db/schema.py

The package also contains utility functions for data retrieval.

Development

The project follows Google code and documentation style guide. Linting should be performed by ruff.

Installation and testing:

pip install .[test]
pytest

About

ORM and access layer for the existing sequencing run tracking database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages