semvec/pypi-packages huggingface dataset:
example_package_samreynoldsmath 0.2.1
A simple demo of how to structure, use, and publish a Python package.
License: MIT
Requires Python: <4.0,>=3.11

# Python Package Template

## Description
A simple demo of how to structure, use, and publish a Python package.

## Prerequisites
- Python 3.11 or later
- [Virtual environments](https://virtualenv.pypa.io/en/latest/user_guide.html)
- A [PyPi](https://pypi.org/) account
- [poetry](https://python-poetry.org/)

## Usage
### Clone the repository
- This is a template repository on [GitHub](https://github.com/samreynoldsmath/PythonPackageTemplate)
- To use it, click the green `Use this template` button at the top of the GitHub page
- Clone your new repository to your local machine

### Make changes
- Change the package name from `example_package_samreynoldsmath` to your own package name by renaming the directory
- Edit the source code as needed
- Update the `pyproject.toml` file to include your own package metadata
- Update `README.md`, `CHANGELOG.md`, `LICENSE`, `.gitignore`, and other files as needed

### Build and upload
Clear the `dist` directory
```bash
rm dist/*
```
Build the package using `poetry`
```bash
poetry build
```
Publish the package to [PyPi](https://pypi.org/) using `poetry`
```bash
poetry publish
```

### Install
In a fresh virtual environment, install the package using `pip` (replace `example-package-samreynoldsmath` with your package name)
```bash
pip install example-package-samreynoldsmath
```

## License
[MIT](https://choosealicense.com/licenses/mit/)
bit-common 0.1.15
Bit common types and utilities.
License: MIT
Requires Python: <4.0,>=3.12

# README.md

## bit-common

`bit-common` is a Python library that provides types and utilities for working with bits. It allows you to easily convert data to and from bits, making it a handy tool for low-level programming, data analysis, and more.

### Installation

You can install `bit-common` using pip or poetry.

#### Using pip

```bash
pip install bit-common
```

#### Using poetry

```bash
poetry add bit-common
```

### Usage

Here are some examples of how you can use `bit-common`.

#### Converting data to bits

```python
from bit.type import int8, UTF8StringWithPrefix

# Converting data to bits
data = int8(3)
bits = data.to_bits()
print(bits)  # Output: [1, 1, 0, 0, 0, 0, 0, 0]

# Converting bits to data
bits = [1, 1, 0, 0, 0, 0, 0, 0]
data = int8.from_bits(bits)
print(data)  # Output: 3

# Converting string to bits
string = UTF8StringWithPrefix("Hello")
bits = string.to_bits()
print(bits)  # Output: [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0]

# Converting bits to string
bits = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0]
string = UTF8StringWithPrefix.from_bits(bits)
print(string)  # Output: "Hello"
```


### License

`bit-common` is licensed under the MIT License.