Exploring SQLAlchemy
Project description
Exploring SQLAlchemy
This project provide a sandbox to experiment with SQLAlchemy. This idea is to build an example sequentially in steps to give new users the idea on where to start and how to progress.
Along the way some principles will be exhibited. The code should be self-explanatory.
The source code in src by itself does not do much, it basically only defines the tables and some setup code. The “examples” are in the the pytest's since we are experimenting to see howe it works and if it was successfull.
References:
https://www.tutorialspoint.com/sqlalchemy/sqlalchemy_orm_many_to_many_relationships.htm
https://docs.sqlalchemy.org/en/14/orm/tutorial.html#building-a-relationship
https://cyruslab.net/2020/07/16/pythoncreate-database-if-not-exists-with-sqlalchemy/
Installation
- Status:
Work In Progress
Set the following environment variables:
Start Docker. The docker-rebuild.bat script will git docker up and running.
Tests
- Status:
Work In Progress
This project uses pytest to run tests and also to test docstring examples.
Install the test dependencies.
pip install -r requirements_test.txt
Run the tests.
Instructions about how to run tests.
Contributing
- Status:
Work In Progress
The setup and installation is for Windows. Feel free to add contribute to get it running on Linux as well.
This project uses black to format code and flake8 for linting. We also support pre-commit to ensure these have been run. To configure your local environment please install these development dependencies and set up the commit hooks.
$ pip install black flake8 pre-commit
$ pre-commit install
Releasing
- Status:
Work In Progress
Releases are published automatically when a tag is pushed to GitHub.
# Set next version number
export RELEASE = x.x.x
# Create tags
git commit --allow -empty -m "Release $RELEASE"
git tag -a $RELEASE -m "Version $RELEASE"
# Push
git push upstream --tags
License
- Status:
Work In Progress
Contact
- Status:
Work In Progress
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for SQLAlchemyExample-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c07fa6dcdde429abbc3e0517998b919609675ae2bc4136bfa836f7986938c236 |
|
MD5 | 4396f3bfe6bb2afa0f0335adfbdb650b |
|
BLAKE2b-256 | 7478ae0296e37a32f1f9160c0c675a074c48b61463451185a63792cf1ec1a262 |