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.1.tar.gz (17.9 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.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kaititu-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c14560276332591c5161c94c56a886ce476e09728142beee1828207f0d75b9f1
MD5 3247240d52c7ade815d6bd65f69f3ad2
BLAKE2b-256 274aa59cc4b0779d52cf58a02eeea2e184820bed1d8051e0201a77e5947a2630

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for kaititu-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f55938dbed7b9f396759af45f1555b339b4ad48335709fff6e9552bf7d339a15
MD5 5661d64ab9f22e40376c4bc4c6fe7217
BLAKE2b-256 2bf55e1ffb95e12ac39caf1e907f92639d463dac3d667a97e134d880adcf9c7f

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