Skip to main content

My custom library for data science, trading and ML projects

Project description

EMR-Py

A collection of utilities for now to:

  • encode data.
  • logging.
  • Integrating with Telegram bots—designed for use in trading and data science workflows.

Project Structure

src/emrpy/
    encoders.py           # Utilities for encoding categorical data using scikit-learn
    decorators.py         # Function decorators for timing and memory profiling
    telegrambot.py        # Async Telegram bot for sending trading notifications
    logging/
        logger_config.py  # High-level logger configuration utilities
tests/
    test_encoders.py      # Unit tests for encoding functionality
    test_logger_config.py # Unit tests for logger configuration
    test_telegram_bot.py  # Integration tests for the Telegram bot
.github/
    actions/
        setup/action.yml  # Custom GitHub Action for installing dependencies
    workflows/
        code-quality.yml  # CI workflow for formatting, linting, and testing

Main Functionalities

  • Data Encoding (encoders.py): Provides a robust function to encode categorical columns in pandas DataFrames using sklearn's OrdinalEncoder, with special handling for unknown and missing values.

  • Decorators (decorators.py): Includes decorators to measure function execution time and memory usage, useful for profiling and debugging.

  • Telegram Trading Bot (telegrambot.py): An async-first Telegram bot to send trading notifications, alerts, and bulk messages, with error handling and logging built-in. Uses the python-telegram-bot library.

  • Logging Utilities (logging/logger_config.py): Easy-to-configure, colored, and optionally rotating log files, suitable for both scripts and Jupyter notebooks.

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

emr_py-0.3.3.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

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

emr_py-0.3.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file emr_py-0.3.3.tar.gz.

File metadata

  • Download URL: emr_py-0.3.3.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.9

File hashes

Hashes for emr_py-0.3.3.tar.gz
Algorithm Hash digest
SHA256 1cc8c175a7756716411c296deb41160d2308f0830ed39e380989b95c3497a157
MD5 82cdde9ca4ea5f0f93a5bd8e6a447660
BLAKE2b-256 765ee766e21c3c25266efbb7982d8c1ba0672f130c1ff53a275c2319b09ab65b

See more details on using hashes here.

File details

Details for the file emr_py-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: emr_py-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.9

File hashes

Hashes for emr_py-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c6719833f31b9c5e0ea1ba275041233ca95a28cc302cb9a47b082e0a4f4cdf
MD5 73a44361cd4435ed21aa8388762bf58c
BLAKE2b-256 54c8ba8ee9b4971d3979e712445908025eadc22321b52265e8ae51d186690fe6

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