Skip to main content

Sqlalchemy ORM for Fortress

Project description

Fortress Alchemy

Installation

You can install the client using pip. Simply run the following command:

pip install fortress-alchemy

Quick Start

Here is a quick example to get you started with the client:

from fortress_alchemy import FortressAlchemy

# Initialize the client with your API key
client = FortressAlchemy(org_id='your_org_id', api_key='your_api_key')

# Create an engine
engine = fortress_alchemy.create_engine("client1", echo=True)

# Create a database

Documentation

Below is a list of the available functionality in the client. The client allows you to create SQLAlchemy engines to use with your existing SQLAlchemy infrastructure. You can also easily route data requests based on tenant names. For more detailed information, please refer to the Fortress API documentation.

  • create_engine(tenant_id: str, **kwargs: Any): Creates a new SQLAlchemy engine for the given tenant. The tenant ID is used to route data requests to the correct database.

Configuration

To use the client, generate an API key from the Fortress dashboard. Also, provide the organization ID, which is available under the API Keys page on the platform website.

License

This client is licensed under the MIT License.

Support

If you have any questions or need help, don't hesitate to get in touch with our support team at founders@fortress.build.

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

fortress_alchemy-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

fortress_alchemy-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file fortress_alchemy-0.1.0.tar.gz.

File metadata

  • Download URL: fortress_alchemy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for fortress_alchemy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4578214179bb322b6ef50802c3a8cf9da84f23e513e3460726741e20b324e479
MD5 1e133d63a684362c9977a7ffceb2a747
BLAKE2b-256 d944e6b0ffabe520c5c81ac3ce7980968a91e38b0efddbcdb87c9869ec28b8e4

See more details on using hashes here.

File details

Details for the file fortress_alchemy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fortress_alchemy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5432fbc03c77d32002b684dc5a2d251cf52d2c8f7af88696f80dbeb22114a14c
MD5 4f7e89aff10732468a70b99ac9f515cc
BLAKE2b-256 574026907682990dd186d20928e7740662a259f47beebedf30d786b1375969e8

See more details on using hashes here.

Supported by

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