Skip to main content

REST HTTP Abstraction Library

Project description

https://github.com/infraguys/restalchemy/actions/workflows/tests.yml/badge.svg https://img.shields.io/pypi/pyversions/restalchemy https://img.shields.io/pypi/dm/restalchemy

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

restalchemy-14.1.6.tar.gz (154.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

restalchemy-14.1.6-py3-none-any.whl (258.5 kB view details)

Uploaded Python 3

File details

Details for the file restalchemy-14.1.6.tar.gz.

File metadata

  • Download URL: restalchemy-14.1.6.tar.gz
  • Upload date:
  • Size: 154.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for restalchemy-14.1.6.tar.gz
Algorithm Hash digest
SHA256 07c867ea693f83d5dc9a15e2298d623623ab67685979366b5d9b2fcd54fb8633
MD5 09cf149b5839de17edc80b6b8cf6f0f8
BLAKE2b-256 9f1d9cc3f8fffad7a2f108080238ad669bca0f71ffc6ac76626a64e21f7ff389

See more details on using hashes here.

Provenance

The following attestation bundles were made for restalchemy-14.1.6.tar.gz:

Publisher: publish-to-pypi.yml on infraguys/restalchemy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file restalchemy-14.1.6-py3-none-any.whl.

File metadata

  • Download URL: restalchemy-14.1.6-py3-none-any.whl
  • Upload date:
  • Size: 258.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for restalchemy-14.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 72a03e4ebccb8a816410dde1fcf6596e01b7860f3014296fb543eed5e3e28a0d
MD5 23354b7dfb7eac02440923d143c5ecc8
BLAKE2b-256 34fa776a6c91b4c6bd55b876b452317aa10f16c59b53b49b090e29d531b54412

See more details on using hashes here.

Provenance

The following attestation bundles were made for restalchemy-14.1.6-py3-none-any.whl:

Publisher: publish-to-pypi.yml on infraguys/restalchemy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page