semvec/pypi-packages huggingface dataset:
yalidine 0.0.3
This package is to integrate Yalidine api easily.
License: MIT
Requires Python: >=3.7
Keywords: yalidine, livraison, delivery

# Yalidine
[Yalidine](https://github.com/tarek-berkane/yalidine) a Python library that implement [Yalidine](https://yalidine.com/) `REST` API.

![alt text](images/yalidine-logo.png)

## Instaltion
```bash
pip install yalidine
```

## Usage
### Initialize client
```py
from yalidine import YalidineClient

app_id = "APP-ID"
app_token = "APP-TOKEN"

client = YalidineClient(app_id, app_token)

print(client.get_parcels())
```
### Check api limit
```python

response = client.get_parcels()
limit = client.last_response_headers
# last_response_headers include api limit status from last request
print(limit)
```


### Parcel
```py
parcel = Parcel(
    order_id="test_parcel",
    firstname="firstname",
    ... # Fill Fields
)

# create parcel
response = client.create_parcel([parcel])

# update parcel
response = client.update_parcel(parcel_id=parcel_id, data=parcel)

# delete parcel
response = client.delete_parcel(parcel_id="parcel_id")

# Get parcel 
response = client.get_parcel(parcel_id="parcel_id")

# Get parcel list
response = client.get_parcels()

# Get parcel list using filter
from yalidine.entity import ParcelFilter
response = client.get_parcels(filter=ParcelFilter(page=1))

```

### History
```python
from yalidine.entity import HistoryFilter

responce = client.get_histories(filter=HistoryFilter(page_size=2))

```

### Centers
```python
from yalidine.entity import CenterFilter

responce = client.get_centers(filter=CenterFilter(page_size=2))

```

### Wilayas
```python
from yalidine.entity import WilayasFilter

responce = client.get_wilayas(filter=WilayasFilter(page_size=2))
```

### Communes
```python
from yalidine.entity import CommunesFilter

responce = client.get_communes(filter=CommunesFilter(page_size=2))
```

#### Delivery Fees
```python
from yalidine.entity import DeliveryFeesFilter

responce = client.get_delivery_fees(filter=DeliveryFeesFilter(page_size=2))
```
envwrap 0.1.0
🚀 Override function defaults with environment variables
License: MIT
Requires Python: <4.0,>=3.8

# envwrap

[![PyPI](https://img.shields.io/pypi/v/envwrap.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/envwrap.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/envwrap)][pypi status]
[![License](https://img.shields.io/pypi/l/envwrap)][license]

[![Read the documentation at https://envwrap.readthedocs.io/](https://img.shields.io/readthedocs/envwrap/latest.svg?label=Read%20the%20Docs)][read the docs]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]

[pypi status]: https://pypi.org/project/envwrap/
[read the docs]: https://envwrap.readthedocs.io/
[tests]: https://github.com/regulad/envwrap/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/regulad/envwrap
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black

## Features

- TODO

## Requirements

- TODO

## Installation

You can install _envwrap_ via [pip] from [PyPI]:

```console
$ pip install envwrap
```

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_envwrap_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [@regulad]'s [neopy] template.

[@regulad]: https://github.com/regulad
[pypi]: https://pypi.org/
[neopy]: https://github.com/regulad/cookiecutter-neopy
[file an issue]: https://github.com/regulad/envwrap/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/regulad/envwrap/blob/main/LICENSE
[contributor guide]: https://github.com/regulad/envwrap/blob/main/CONTRIBUTING.md
[command-line reference]: https://envwrap.readthedocs.io/en/latest/usage.html