REST HTTP Abstraction Library
Project description
REST Alchemy
The Python REST HTTP Toolkit and Object Relational Mapper.
Migration commands
<migration number>-<message>-<hash>.py
$ ra-rename-migrations -p <path-to-migrations>
Create migrations:
$ ra-new-migration --path examples/migrations/ --message "1st migration" $ ra-new-migration --path examples/migrations/ --message "2st migration" --depend 1st $ ra-new-migration --path examples/migrations/ --message "3st migration" --depend 2st $ ra-new-migration --path examples/migrations/ --message "4st migration" $ ra-new-migration --path examples/migrations/ --message "5st migration" --depend 3st --depend 4st
Apply migrations:
$ ra-apply-migration --path examples/migrations/ --db-connection mysql://test:test@localhost/test -m 5st > upgrade 1st > upgrade 2st > upgrade 3st > upgrade 4st > upgrade 5st
Rolled back migrations:
$ ra-rollback-migration --path examples/migrations/ --db-connection mysql://test:test@localhost/test -m 4st > downgrade 5st > downgrade 4st
$ ra-rollback-migration --path examples/migrations/ --db-connection mysql://test:test@localhost/test -m 1st > downgrade 3st > downgrade 2st > downgrade 1st
Tests
Run tests for python 2.7
$ tox -e py27
Run functional tests (python 2.7)
$ export DATABASE_URI="mysql://test:test@localhost/test" $ tox -e functional
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file restalchemy-14.2.0.tar.gz.
File metadata
- Download URL: restalchemy-14.2.0.tar.gz
- Upload date:
- Size: 156.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b25b475907f3a3737376bdd009ccf61c25dcf7f328d07da44db89d10c535aaf6
|
|
| MD5 |
4d1abde86e336ce21e7659a02d5ca1cc
|
|
| BLAKE2b-256 |
00c305b946af7f1b77c75a922cf4228cb6db1421e5a850d6007e2d34f28cc31c
|
Provenance
The following attestation bundles were made for restalchemy-14.2.0.tar.gz:
Publisher:
publish-to-pypi.yml on infraguys/restalchemy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
restalchemy-14.2.0.tar.gz -
Subject digest:
b25b475907f3a3737376bdd009ccf61c25dcf7f328d07da44db89d10c535aaf6 - Sigstore transparency entry: 533264085
- Sigstore integration time:
-
Permalink:
infraguys/restalchemy@4e79b54b4c470e112204a02943e22b24705e31fb -
Branch / Tag:
refs/tags/14.2.0 - Owner: https://github.com/infraguys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@4e79b54b4c470e112204a02943e22b24705e31fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file restalchemy-14.2.0-py3-none-any.whl.
File metadata
- Download URL: restalchemy-14.2.0-py3-none-any.whl
- Upload date:
- Size: 260.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb8f87de700129faf92fc7e1ef7757f066e81beac41de6be67f7c1a304a7b735
|
|
| MD5 |
ed60a1e165dc4530480070594a92e139
|
|
| BLAKE2b-256 |
b4ddbb6502d004e0e57998e7a99281edd0b2c087a0d05e7880cc32572c508c06
|
Provenance
The following attestation bundles were made for restalchemy-14.2.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on infraguys/restalchemy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
restalchemy-14.2.0-py3-none-any.whl -
Subject digest:
eb8f87de700129faf92fc7e1ef7757f066e81beac41de6be67f7c1a304a7b735 - Sigstore transparency entry: 533264087
- Sigstore integration time:
-
Permalink:
infraguys/restalchemy@4e79b54b4c470e112204a02943e22b24705e31fb -
Branch / Tag:
refs/tags/14.2.0 - Owner: https://github.com/infraguys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@4e79b54b4c470e112204a02943e22b24705e31fb -
Trigger Event:
push
-
Statement type: