Skip to main content

The default database module for LitePolis that compatible with Polis

Project description

LitePolis Database Default

This is the default database module that compatible with Polis.

Quick Start

  1. Install the module:
litepolis-cli add-deps litepolis-database-default
  1. Configure database connection:
# ~/.litepolis/litepolis.config
[litepolis_database_default]
database_url: "postgresql://user:pass@localhost:5432/litepolis"
# database_url: "starrocks://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>"
  1. Basic usage:
from litepolis_database_default import DatabaseActor

user = DatabaseActor.create_user({
    "email": "test@example.com",
    "auth_token": "auth_token",
})

conv = DatabaseActor.create_conversation({
    "title": "Test Conversation",
    "description": "This is a test conversation."
})

More usage in Project Page

License

MIT Licensed. See LICENSE for details.

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

litepolis_database_default-0.0.3.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

litepolis_database_default-0.0.3-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file litepolis_database_default-0.0.3.tar.gz.

File metadata

File hashes

Hashes for litepolis_database_default-0.0.3.tar.gz
Algorithm Hash digest
SHA256 08c64d5bafbd950a120499497bf244445655b685f50310e6353aebdab55f2c52
MD5 be6575e26b3479e1d724db87e92bda0b
BLAKE2b-256 be0cebc84c141b172c13b35a8d0edd0c68d292821beb88fc77aa404f5a018e79

See more details on using hashes here.

Provenance

The following attestation bundles were made for litepolis_database_default-0.0.3.tar.gz:

Publisher: python-publish.yml on NewJerseyStyle/LitePolis-database-default

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

File details

Details for the file litepolis_database_default-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for litepolis_database_default-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a716b9c92dfc1835350e83c77835e3efb632a634bd9ce19fc146dc958d9becad
MD5 50cb03d99c8ff94df6ca654426daa71f
BLAKE2b-256 a4dfdd454c965efd782563fc013e07e6b3ca0d841713795f9fc77050d4ce1fea

See more details on using hashes here.

Provenance

The following attestation bundles were made for litepolis_database_default-0.0.3-py3-none-any.whl:

Publisher: python-publish.yml on NewJerseyStyle/LitePolis-database-default

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