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.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distributions

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

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

Uploaded Python 3

DAPRO-0.1.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file DAPRO-0.1.0.tar.gz.

File metadata

  • Download URL: DAPRO-0.1.0.tar.gz
  • Upload date:
  • Size: 14.7 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.0.tar.gz
Algorithm Hash digest
SHA256 3918379f410b2d3c99db4a03d5e39b0c0c346a31b41f7a612e3b5e901e570014
MD5 521fdc74b8e3bdbc43affb91589dc926
BLAKE2b-256 209751c237b933bcef06fb8014dc8d49256decf454e7e1dd97df35ba74c7b9c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dapro-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 899dc709a1edfabe5488adfc21d5b50913d87541a412b9ffc0b63541962b15ca
MD5 3736822b58a0c40bed72803502ef713c
BLAKE2b-256 389d27021dd96b531865d3c64986b6956c1d40774bc3820e9293ac16ad85af7d

See more details on using hashes here.

File details

Details for the file DAPRO-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: DAPRO-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 256cfa6d2485208ef73201dcc071f9293deaf64ec969e982da1e6a7771c789c5
MD5 71c8a6a6b4fb7f90bae149da00b77d6e
BLAKE2b-256 9c7d218f4270ef6f6a0158ff1a2aa7f112e76e0dec81fc4999aa65225a2b67d3

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