Skip to main content

Fix for boolean variables in Python

Project description

booleanfix

The most useless pip package so far
PyPI version

The problem

If you come from another programming language, you may have noticed that Python's boolean variables are a bit different. This module aims to fix that, by giving you boolean variables like you're used to.

The solution

This very simple project gives you boolean variables like you're used to. It's as simple as that.

true = True
false = False

Usage

  1. Install the package in your repo
pip install booleanfix==1.0.0

If you use a requirements file, add this line to it :

booleanfix==1.0.0
  1. Use it in your code

    a. The classic way

    import booleanfix as bf
    
    print(isinstance(bf.true, bool))
    print(bf.false == False)
    

    b. The easy way

    from booleanfix import true, false
    
    print(isinstance(true, bool))
    print(false == False)
    

Contributing

Feel free to open an issue or a pull request if you want to contribute to this project

License

This project is licensed under the MIT License - see the LICENSE file for details

Authors

  • EDM115 - Initial work - EDM115

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

booleanfix-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

booleanfix-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file booleanfix-1.0.0.tar.gz.

File metadata

  • Download URL: booleanfix-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for booleanfix-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c7ed5260a5cd7efb41982d7f48cc1ef4db29b9debcf8cd4b44c864630604a9ec
MD5 537d4b66445633a6e1b264868cf24aaa
BLAKE2b-256 17c821e48602a1aa322f2928ddd92775214917300e39ef5d33d997e9e74eba17

See more details on using hashes here.

File details

Details for the file booleanfix-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: booleanfix-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for booleanfix-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f69dffcb3c1e0495d49b4f22077552d353b1c7c85048148e638f3ed43b848492
MD5 a3beeee73125cbd38f521de8079c50ed
BLAKE2b-256 1884022ad565daccac9e008cd9f4dff0e580566ab421d806ca15332b2e5267b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page