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.

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.1.0.tar.gz (3.7 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.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytsterrors-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.16.4-115.bazzite.fc42.x86_64

File hashes

Hashes for pytsterrors-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1ca0b922701733f91fb1bbd31e9e92058453468ad5227c1ec1857dbbf65b5974
MD5 56a48bb7fa45ecf5024f9e74071b64e3
BLAKE2b-256 1da3b61fdaca08510feddfecf5c0fde2bc78eb3360ed2c19fffa41ec4f477d1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytsterrors-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.16.4-115.bazzite.fc42.x86_64

File hashes

Hashes for pytsterrors-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d98e8c100eeb3b65b17079b783c4430d38fe8da90162549d9a0b10cdda3a2145
MD5 ae6b37f423c405b0f20ad6dcc6588e38
BLAKE2b-256 013aae0301f40ac472fb64ea2936c3d092437259968ca3fd23e9f55df3756fbc

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