Skip to main content

It is a library to deal with operational and analytical tasks on popular database management system.

Project description

KAITITU

What is KAITITU?

KAITITU is a library to deal with common tasks on databases. It has a generic API that helps on operational and analytical tasks for popular database management system.

License

KAITITU is released under the terms of the Apache license v2.0. See LICENSE for information.

Contributing

We welcome contributions from the community. Before submitting a pull request, please review our contribution guide.

Getting started

KAITITU is available in PyPI.org, so the recommended method to install is $ pip install kaititu. Otherwise, you can download the source code and run by yourself.

In a nutshell, the first requirement is a subclass of kaititu.Database, it's resposible to manage database connections and calls. The second piece is an instance of some class that uses kaititu.Database; for example, the kaititu.audit.AccessControlReport class.

With this minimum setup, you can use KAITITU like in the code sample below.

from kaititu.audit.postgres import PostgresACR
from kaititu import Postgres

# the user must have privileges to read system objects of database
db=Postgres("127.0.0.1",5432,"dba","654321")

# print the database version as a banner 
print(db.version)

with db.connect() as connection:
    acr=PostgresACR(connection)
    # get profiles that have undue privileges on tables. See the docs for detail.
    result=acr.profile_undue_table_privileges()
    # print the corresponding polars.DataFrame
    print(result)

To better understanding KAITITU, read the documentation.

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

kaititu-1.0.2.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

kaititu-1.0.2-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file kaititu-1.0.2.tar.gz.

File metadata

  • Download URL: kaititu-1.0.2.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.24.1 CPython/3.10.5 Windows/10

File hashes

Hashes for kaititu-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3f2d3ee076f404cb13c0caf11b50089f4aae6fb15f5e38b5ac44e1380eeed5be
MD5 6d8bac98c3c7f40f4fc77bb21a53e997
BLAKE2b-256 6f6d379782b15da5963875adbbc6819a35400b5ed47654c9bd6aa5c0e76f3393

See more details on using hashes here.

File details

Details for the file kaititu-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: kaititu-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.24.1 CPython/3.10.5 Windows/10

File hashes

Hashes for kaititu-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2f4a276787ca6ac58a3d74c2847cadbe0b1d322d804c9e6021203133d458594
MD5 cfeb07ba1f675bdc0771e76bcbb22639
BLAKE2b-256 f82829268c6ae640aef1cd9ff1122cbdcfa608f544ed677728bd6cf554cf6f4a

See more details on using hashes here.

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