semvec/pypi-packages huggingface dataset:
andreani 1.0.0
Andreani SDK for python
License: MIT

# andreani

This is a Python module that provides a class called SDK for interacting with the [Andreani API](https://developers.andreani.com/documentacion/). The SDK class has several methods that allow users to login, estimate shipping fees, retrieve shipping labels, and submit shipments to Andreani.

## SDK class:

1. `login(username: str, password: str) -> typing.Optional[LoginResponse]`: This method logs in to the Andreani API using the provided username and password. It returns a LoginResponse object if the login was successful, or raises an AndreaniException if there was an error.

2. `estimate_price(postalcode: str, contract: str, client: str, office: str, order: Order) -> typing.Optional[FeesResponse]`: This method estimates the shipping fees for a given postalcode, contract, client, office, and order. It returns a FeesResponse object if the request was successful, or raises an AndreaniException if there was an error.

3. `submit_shipment(shipment: Shipment) -> typing.Optional[SubmitShipmentResponse]`: This method submits a shipment to Andreani. It returns a SubmitShipmentResponse object if the request was successful, or raises an AndreaniException if there was an error.

4. `get_shipment_status(shipment_number: str) -> typing.Optional[SubmitShipmentResponse]`

5. `get_label(url:str, save: bool = False, filename: str = None)`: This method fetches the label for a shipment in pdf format. If the `save` parameter is `True`, the method writes the content of the response to a file with the specified `filename`. If `save` is not provided or is `False`, the method returns the content of the response as bytes.

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
This software is distributed under the MIT licence. See LICENCE for details.

Copyright (c) 2021-2022 Juan Pablo Senn <juanpsenn@gmail.com>
ndcc 0.2.0
tba
License: MIT
Requires Python: >=3.10,<4.0

# ndcc - NFL Draft Capital Comparator

A simple CLI App
 to compare the value
 of up to 32 NFL draft pick collections
 with one another.
 This can be useful when trying to determine
 which team in the draft has the most draft capital,
 or by how much a team increased
 or decreased their capital
 with their draft day (pick) trades.
 The most obvious use case however is to determine
 who won a pick trade according to different value charts.

For now,
 these are the charts one can choose between to determine value:

* [Jimmy Johnson](https://www.drafttek.com/nfl-trade-value-chart.asp)
* [Rich Hill](https://www.drafttek.com/NFL-Trade-Value-Chart-Rich-Hill.asp)
* [Fitzgerald/Spielberger](https://overthecap.com/draft-trade-value-chart/)
* [Kevin Meers (Harvard Sports Analysis)](https://harvardsportsanalysis.wordpress.com/2011/11/30/how-to-value-nfl-draft-picks/)
* [PFF WAR](https://www.pff.com/news/draft-pff-data-study-breaking-down-every-nfl-teams-draft-capital-jacksonville-jaguars)
* [Michael Lopez (blended curve)](https://statsbylopez.netlify.app/post/rethinking-draft-curve/)
* [Chase Stuart](http://www.footballperspective.com/draft-value-chart/)

To account for drafts with a lot of compensatory picks,
 each chart is "prolonged" to 270 picks,
 using estimates on what the remaining values would be.

## installation

```sh
pip install ndcc
```

## usage

```sh
python -m ndcc
```

## adding charts

To add another chart,
 simply add a column in charts.csv,
 fill in the values
 and add the column name
 and chart name
 you want to be presented with
 to the values
 (and default_values,
 if you want the chart to be selected by default)
 of the checkboxlist_dialog
 in input.get_selected_charts().