Skip to main content

pytsterrors contains an exception that helps to validate trace calls

Project description

pytsterrors

This package is created to validate trace calls of exceptions in unit tests.

The source code of the package is https://github.com/rm4n0s/pytsterrors

Description

It is a new way to handle exceptions and to be able to write unit tests that will validate stack traces.
The idea came from the Odin programming language, and even though it isn't nearly as good as in Odin, it is good enough to help me write monolithic applications or microservices without worrying about complications or accidental changes.

I have written in the past a blog post called Error Handling Challenge, where it compares each programming language's solution of the error challenge. For a long time, I believed that Python couldn't solve it because of exceptions.
Actually, I have proven with this package that not only does it solve it (check the 'error_challenge' folder in 'examples'), but it is simpler than the rest of programming languages.

I hope this package will help me to architect software in what I call Can't Driven Development.

Expect changes in this package, because I will start experiment its validity in other projects of mine and maybe new things will be added.

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

pytsterrors-0.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

pytsterrors-0.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pytsterrors-0.2.0.tar.gz.

File metadata

  • Download URL: pytsterrors-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.17.4-200.fc42.x86_64

File hashes

Hashes for pytsterrors-0.2.0.tar.gz
Algorithm Hash digest
SHA256 387ca277ae3a5386ba17c22f56ea4a5b28f0565ae37a7ecdc7785ac43755657b
MD5 8259de80cc670afea750f8b51e17ce8a
BLAKE2b-256 22280cf246446fbbca1a8de2d8490c1fdef347f409770599620c6a84b89ba70b

See more details on using hashes here.

File details

Details for the file pytsterrors-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pytsterrors-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.17.4-200.fc42.x86_64

File hashes

Hashes for pytsterrors-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ae48d0a79687d73b541635fdf7cd0f16a3060bacb71e93f7e5c93a3e5409c3
MD5 4843c82d2778285300a8333d50969fc9
BLAKE2b-256 dae930f2f491ffe78d605743bfe125eaf5bebf65f50cd8efa9cf7ac6cd5451db

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