Skip to main content

REST HTTP Abstraction Library

Project description

https://travis-ci.org/phantomii/restalchemy.svg?branch=master

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-11.0.1.tar.gz (126.8 kB view details)

Uploaded Source

Built Distribution

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

restalchemy-11.0.1-py3-none-any.whl (230.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for restalchemy-11.0.1.tar.gz
Algorithm Hash digest
SHA256 85819588c50ed40690acc77420a1cde1e3f0f3b86bcbd89c6b57144002206149
MD5 7a72cede04c7ce2b7a93c148c4e3569f
BLAKE2b-256 7a454c9e79ba71a5d0d3a1b143c5dac7a6bc11fd8858375ad2187dd24e7d39ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for restalchemy-11.0.1.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-11.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for restalchemy-11.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4842cccaee0bfbdf06f1634cf68ba9ca1c49d5896fadd62ed6dce8e9b844b102
MD5 b5651ee6aa0ddb59158863d24f38302d
BLAKE2b-256 fd46ca3f7dbfa75e1cca887aa657f24125da751b38f910a6bf86f5f75ba3a6cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for restalchemy-11.0.1-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