Skip to main content

senabase starterpack library

Project description

senabase-starterpack

senabase-starterpack is personal library for fast prototyping.

Installation

Use pip to download it from PyPI

$ pip install senabase-starterpack

The minimum required versions of the respective tools are:

psycopg2-binary>=2.9.1
pyyaml>=6.0
requests>=2.30.0

Example

PostgreSQLHandler

Postgresql starterpack

from senabase.starterpack.database import PostgreSQLHandler

pgh = PostgreSQLHandler()
pgh.configure('127.0.0.1', 5432, 'postgres', 'userid', 'userpassword')

q1 = 'select now()'
rs = pgh.get(q1)

log

Logging starterpack

from senabase.starterpack.log import SimpleLogger

log = SimpleLogger()
log.configure('proto')

log.i('Information')
log.d('Debug')
log.e(Exception('Example exception'))

telegram

Telegram message sender

from senabase.starterpack.telegram import TelegramHandler

token = '0000000000'
chat_id = '00000000'
message = 'Hello'
telegram_handler = TelegramHandler()
telegram_handler.configure(token)
res = telegram_handler.send_message(chat_id, message)

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

senabase-starterpack-0.1.8.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

senabase_starterpack-0.1.8-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file senabase-starterpack-0.1.8.tar.gz.

File metadata

  • Download URL: senabase-starterpack-0.1.8.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for senabase-starterpack-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c89fa620db365a66d6117ae17d10bdbf1bf7c0928f1aef283dfe6989ee525d2c
MD5 2f248e35ed51959ef61c701d9e8b7c3a
BLAKE2b-256 f8f4fd0fc3773097b42d7a4c2d291e7bda8f0dcbd9da3e3dbf862fd9adfa67e4

See more details on using hashes here.

File details

Details for the file senabase_starterpack-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for senabase_starterpack-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ca5ae6698c6f2921d85b24683dedef9e4e709b20fbaa5c3c4783a5d2b6123ebf
MD5 8e6ec44076a2b365f2f82eb237ecb975
BLAKE2b-256 663f7838f81123692d932917f82e0118fce128bdc281febc8709bf4158c638a2

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