semvec/pypi-packages huggingface dataset:
tidy_headers 1.0.4
Easy headers, inspired by the tidy data specification.
Requires Python: >3.8

# tidy_headers

`tidy_headers` stores metadata in beautifully readable plain text headers.

## example

For some `filepath`, 

```python
import collections
import tidy_headers
meta = collections.OrderedDict()
meta['date'] = '2017-11-10'
meta['location'] = 'Madison, Wisconsin, USA'
meta['name'] = ['batch', 'apples', 'pineapple', 'oregano', 'tomatoes']
tidy_headers.write(filepath, meta)
```

To get the dictionary back, simply `read`:

```python
meta = tidy_headers.read(filepath)
```

:tada:

See the examples directory for more:
* [minimal.txt](../master/examples/minimal.txt)
* [named.txt](../master/examples/named.txt)

## installation

### using pip

```
pip install tidy_headers
```

### using conda

```
conda config --add channels conda-forge
conda install tidy_headers
```

## allowed values

`tidy_headers` strives to write plain text headers in an unambiguous way such that an identical metadata dictionary can be generated using `read`. This process is only reliable for the following subset of python types:

- `str`
- `int`
- `float`
- `list` containing any combination of the above
- `numpy.ndarray` (arbitrary size and dimensionality)

Metadata dictionaries containing only these types are guaranteed to `read` and `write` succesfully.
fetchio 1.0.0
A simple HTTP library in Python similar to JavaScript fetch.
Requires Python: >=3.10

# 📦 Fetch HTTP Library

Welcome to the **Fetch HTTP Library**! This library provides a simple and efficient way to make HTTP requests in Python. It supports GET, POST, PUT, and DELETE methods, and handles responses gracefully.

## 🚀 Features

- 🌐 **GET** requests
- 📤 **POST** requests
- ✏️ **PUT** requests
- ❌ **DELETE** requests
- 📦 Singleton pattern to ensure a single instance
- 🛠️ Easy to use and extend
- 📝 Logging for better traceability

## 📚 Installation

To install the required dependencies, run:

```sh
pip install fetchio
```

## 🛠️ Usage

Here's a quick example of how to use the Fetch HTTP Library:

```python
from fetchio.http import Http

http = Http()

# GET request
response = http.get('http://example.com')
print(response)

# POST request
response = http.post('http://example.com', json={'data': 'value'})
print(response)

# PUT request
response = http.put('http://example.com', json={'data': 'value'})
print(response)

# DELETE request
response = http.delete('http://example.com')
print(response)
```

## 🧪 Running Tests

To run the tests, make sure you have `pytest` installed:

```sh
pip install -r  requirements.txt
```

Then, run the tests with:

```sh
pytest
```

## 📄 License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## 🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

## 📞 Contact

For any questions or inquiries, please contact us at [tal7aouy@gmail.com](mailto:tal7aouy@gmail.com).

---

Made with ❤️ by Mhammed Talhaouy