Skip to main content

eos-core

Type-checked, dependency-free utility library for modern Python

PyPI Version

Introduction

My voyage through the vast and fascinating universe of Python started back in 2004 - when Python 2.3 was still the latest, exciting release... 😊

Since then, both the language and its ecosystem have evolved a lot: in particular, I feel that type hints make Python even more robust, without sacrificing its charming syntax - just like another language I'm fond of: TypeScript.

Consequently, the Eos library is designed to provide a set of shared utilities and patterns emerged during the creation of my open source projects with modern, type-checked Python - and this core package only builds upon the standard library, with no additional runtime dependencies.

For further details, please refer to the sections below, to the documentation within each module, and even to the tests - whose coverage is more than 97%! ^__^

Installation

To install eos.core, just run:

pip install info.gianlucacosta.eos.core

or, if you prefer using Poetry:

poetry add info.gianlucacosta.eos.core

Then, you'll be able to access the info.gianlucacosta.eos.core package and its subpackages.

Highlights

eos.core provides a wide variety of patterns - including:

  • higher-order functional abstractions, such as functions returning adaptable queue writers and readers - whose timeouts vary according to the queue state

  • a disposable TemporaryPath - and a Uuid4TemporaryPath string subclass that perform advanced cleanup, no matter whether you create a file or a whole directory tree upon it

  • a BufferedDbSerializer - using advanced but simple decorators to serialize objects of different types via dedicated SQL statements, but actually writing to DB only when the internal buffer is full

  • an InThreadPool class having the same interface as Python's Pool - but running within the very same thread: definitely handful when debugging and testing

  • a CancelableThread and the related CancelableThreadHandle - enabling the client to send a cancelation request

  • an Atomic class, to read and update arbitrary values atomically

  • a functional module, with expressive type aliases for functions - with ideas borrowed from other languages such as C#, Java and Rust

...and more! ^__^ It's definitely not easy to mention everything in a README file, so please feel free to browse the modules and explore how they are used in the tests!

Release files for info.gianlucacosta.eos.core 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for info.gianlucacosta.eos.core 2.0.0
File Size Uploaded
info_gianlucacosta_eos_core-2.0.0.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for info.gianlucacosta.eos.core 2.0.0
File Interpreter ABI Platform
info_gianlucacosta_eos_core-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.3 kB

Release files / info_gianlucacosta_eos_core-2.0.0.tar.gz

Download URL info_gianlucacosta_eos_core-2.0.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6acfc41f3a705692b5bc99635b454073b748c8fa673ee309e1e1a87d0158a278
BLAKE2b-256 checksum
How to use checksums
a2bbf7b03438cfdb08ed0907a0d9a08bfc3e8e0b4224745cc46ab94d1cfca600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.28.2 CPython/3.12.3 Linux/6.17.0-1022-azure

Release files / info_gianlucacosta_eos_core-2.0.0-py3-none-any.whl

Download URL info_gianlucacosta_eos_core-2.0.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9aa93f01d02303a75430f9adeee8a4c0d461f4e8f35deb787a60640b0f00e09
BLAKE2b-256 checksum
How to use checksums
d688b14f934d3b11e602df8cb6000f03bc1c54aab17bd356e98d89deb1c6fe47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.28.2 CPython/3.12.3 Linux/6.17.0-1022-azure

Release history Release notifications | RSS feed

2.0.2

2 release files

2.0.1

2 release files

This release

2.0.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page