Browse Source

update for pypi

master
S Groesz 2 years ago
parent
commit
3ad4435b3f
  1. 1
      .gitignore
  2. 2
      setup.py
  3. 19
      src/bits.py

1
.gitignore vendored

@ -4,3 +4,4 @@ __pycache__ @@ -4,3 +4,4 @@ __pycache__
build/
dist/
*.egg-info
*.token

2
setup.py

@ -4,7 +4,7 @@ with open("README.md", "r") as fh: @@ -4,7 +4,7 @@ with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="bits",
name="binary-bits",
version="1.0.0",
author="S Groesz",
description="Provide additional methods for working with binary data",

19
src/bits.py

@ -1,7 +1,24 @@ @@ -1,7 +1,24 @@
class Bit:
"""
Provide a flexible bit representation
Provide a flexible bit representation.
Extended description of function.
Parameters
----------
var : bool | int | str | Bit
Any of the supported objects which can be converted to a Bit object.
bool: True or False
int: 0 = False, anything else = True
str: "0" = False, anything else = True
BIT: Bit = Bit
Returns
-------
Bit
A binary representation of True or False with additional useful
features.
"""
def __init__(self, var):

Loading…
Cancel
Save