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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c89fa620db365a66d6117ae17d10bdbf1bf7c0928f1aef283dfe6989ee525d2c
|
|
| MD5 |
2f248e35ed51959ef61c701d9e8b7c3a
|
|
| BLAKE2b-256 |
f8f4fd0fc3773097b42d7a4c2d291e7bda8f0dcbd9da3e3dbf862fd9adfa67e4
|
File details
Details for the file senabase_starterpack-0.1.8-py3-none-any.whl.
File metadata
- Download URL: senabase_starterpack-0.1.8-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca5ae6698c6f2921d85b24683dedef9e4e709b20fbaa5c3c4783a5d2b6123ebf
|
|
| MD5 |
8e6ec44076a2b365f2f82eb237ecb975
|
|
| BLAKE2b-256 |
663f7838f81123692d932917f82e0118fce128bdc281febc8709bf4158c638a2
|