Skip to main content

A library to simplify eval and file handling in Telegram bots.

Project description

DATOE

DATOE simplifies handling .eval and .open commands in Python Telegram bots.

Installation

pip install DATOE

Usage

from DATOE import eval_code_handler, open_file_handler

OWNERS = "OWNER_ID"

@client.on(events.NewMessage(pattern=".eval"))
async def eval(event):
    await eval_code_handler(event, client, OWNERS)

@client.on(events.NewMessage(pattern=".open"))
async def open_file(event):
    await open_file_handler(event, client)

setup.py

Metadata for PyPI:

from setuptools import setup, find_packages

setup(
    name='DATOE',
    version='0.1.0',
    description='A library to simplify eval and file handling in Telegram bots.',
    long_description=open('README.md').read(),
    long_description_content_type='text/markdown',
    author='Your Name',
    author_email='your.email@example.com',
    url='https://github.com/yourusername/DATOE',
    packages=find_packages(include=["*"]),
    classifiers=[
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
    ],
    python_requires='>=3.6',
)

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

dapro-0.1.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

dapro-0.1.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file dapro-0.1.1.tar.gz.

File metadata

  • Download URL: dapro-0.1.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dapro-0.1.1.tar.gz
Algorithm Hash digest
SHA256 adfaf5cb78a72aa820a9173edbc0b6effb5892b805c68de4d7ccf9ab9db329e6
MD5 cb596086e68d1971529b0562ffd340e8
BLAKE2b-256 0b52e13362295615cdc1ffffd9f74962973997d241509d5584115ebc207f9636

See more details on using hashes here.

File details

Details for the file dapro-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dapro-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dapro-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c54907d8e67cd512fd3d3f1881f14d01c226118ff07aad0c32d08ceb22b8f785
MD5 f522b63b0296f9f46bcf946209302e79
BLAKE2b-256 e5a04e3960d89512a387b239bffe7781de7e4ac0a50ed7adacd8f413bb5715ea

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