Skip to main content

Fortress Platform Python API SDK

Project description

Fortress Python SDK

Welcome to the Fortress Python SDK. This SDK provides a way for you to leverage the power of the Fortress platform in your Python applications.

Installation

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

pip install fortress-sdk-python

Quick Start

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

from fortress_sdk_python import Client as FortressClient

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

# Connect to a database
conn = client.connect(database_name='your_database_name')
cursor = conn.cursor()

# Execute a query
cursor.execute('SELECT * FROM your_table_name')

# Fetch the results
results = cursor.fetchall()

# Print the results
for row in results:
    print(row)

# Close the connection
conn.close()

Documentation

Below is a list of the available functionality in the SDK.

  • create_database(database_name: str): Creates a new database.
  • delete_database(database_name: str): Connects to a database.
  • list_databases(): Lists all databases.
  • connect(database_name: str): Connects to a database and turns a LibsqlConnection object.

Configuration

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

License

This SDK 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_sdk_python-0.1.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

fortress_sdk_python-0.1.5-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file fortress_sdk_python-0.1.5.tar.gz.

File metadata

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

File hashes

Hashes for fortress_sdk_python-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4b60b0a41341aeade9fce224e63763006811a7f8f183abc7876b69b6a7aeba73
MD5 43c16564768ccfc20788f61f22aad7ef
BLAKE2b-256 0d80468d11dad403652e6aa250a8103174622f27ad484ed673895406062605e7

See more details on using hashes here.

File details

Details for the file fortress_sdk_python-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for fortress_sdk_python-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c0b0fd82776640b182af3bbcfe3b2bcb283012edddb530d640ab09c5f5989eb3
MD5 f40fca5d88594622e67a93111d7049da
BLAKE2b-256 86df465cac6ff1cb627c42f0293646017972a42d72d011d4a1b71be168b31baa

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