semvec/pypi-packages huggingface dataset:
pinata 0.0.1
Unofficial library for accessing Pinata's IPFS APIs

# Pinata-Python
>> Unofficial IPFS python library for interacting with [Pinata](https://www.pinata.cloud/) APIs

## Installation
Run the following to install:
```python
pip install Pinata-Python
```
# Usage
1. Register an account on [Pinata](https://app.pinata.cloud/register)
2. Create a new api key on [api keys page](https://app.pinata.cloud/keys)
3. Copy your **api key**, **api secret** and **secret key** to be used below.

```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)
```
# Pin a file 
To upload your file to Pinata, you can either provide:
1. Directory path of the file you want to upload
2. File itself as a Byte Stream, eg. If from flask request:
```python
file = request.files["file_name"]
```
Finally, 
```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.pin_file(file)
print(response)
```

# Unpin a file
To unpin a file, you will need the file's IpfsHash.
```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.unpin_file(ipfs_hash)
print(response)
```

# Get all pins
If you want to get all pins in your account:

```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.get_pins()
print(response)
```
pinata-py 0.0.1
Unofficial library for accessing Pinata's IPFS APIs

# Pinata-Python
>> Unofficial IPFS python library for interacting with [Pinata](https://www.pinata.cloud/) APIs

## Installation
Run the following to install:
```python
pip install Pinata-Python
```
# Usage
1. Register an account on [Pinata](https://app.pinata.cloud/register)
2. Create a new api key on [api keys page](https://app.pinata.cloud/keys)
3. Copy your **api key**, **api secret** and **secret key** to be used below.

```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)
```
# Pin a file 
To upload your file to Pinata, you can either provide:
1. Directory path of the file you want to upload
2. File itself as a Byte Stream, eg. If from flask request:
```python
file = request.files["file_name"]
```
Finally, 
```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.pin_file(file)
print(response)
```

# Unpin a file
To unpin a file, you will need the file's IpfsHash.
```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.unpin_file(ipfs_hash)
print(response)
```

# Get all pins
If you want to get all pins in your account:

```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.get_pins()
print(response)
```
python-cta 0.0.2
Python Client for Chicago Transit Data.

# Chicago Transit Authority API

The CTA has three public endpoints for tracking CTA trains. This client supports
those endpoints.

The `CTAClient` has methods for each endpoints. Namely,
- arrivals: Arrival information for a given station(s) or stop(s).
- follow: Follow specific train by runnumber.
- locations: Get all trains for a given route(s).

More endpoint specific documentation found [here](
https://www.transitchicago.com/developers/ttdocs/)

This API requires a key which can be easily received [here](https://www.transitchicago.com/developers/traintrackerapply/).
Follow the `.env.example` file for setting.

## Installation

This package is available on `pip`. Install with:

```bash
$ pip install python-cta
```

## Getting Started

```python
from cta import CTAClient
damen_blue_line_mapid = 40590

# Get arrival information for damen blue line station.
cta_client = CTAClient()
arrival_response = cta_client.arrivals(mapid=damen_blue_line_mapid)
df_arrivals = arrival_response.to_frame()
print(df_arrivals)

# Follow specific train
runnumber = df_arrivals["rn"].tolist()[0]
follow_response = cta_client.follow(runnumber=runnumber)
df_follow = follow_response.to_frame()
print(df_follow)
```

```python
from cta import Route

# Get the location of all Blue Line trains.
location_response = cta_client.locations(Route.BLUE)
df_locations = location_response.to_frame()
print(df_locations)

# Or all trains on the track
location_response = cta_client.locations(route=[route for route in Route])
df_locations = location_response.to_frame()
print(df_locations)
```

Information about the stations can be found with the `Stations` class. Below is an
example to find the mapid for Damen blue line.

```python
from cta import Stations

stations = Stations()
df_stations = stations.data
print(df_stations)

df_damen = stations.lookup("Damen", route=Route.BLUE)
print(df_damen)
```

Try this example for yourself in `scripts/readme_example.py`
Pinata 0.0.1
Unofficial library for accessing Pinata's IPFS APIs

# Pinata-Python
>> Unofficial IPFS python library for interacting with [Pinata](https://www.pinata.cloud/) APIs

## Installation
Run the following to install:
```python
pip install Pinata-Python
```
# Usage
1. Register an account on [Pinata](https://app.pinata.cloud/register)
2. Create a new api key on [api keys page](https://app.pinata.cloud/keys)
3. Copy your **api key**, **api secret** and **secret key** to be used below.

```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)
```
# Pin a file 
To upload your file to Pinata, you can either provide:
1. Directory path of the file you want to upload
2. File itself as a Byte Stream, eg. If from flask request:
```python
file = request.files["file_name"]
```
Finally, 
```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.pin_file(file)
print(response)
```

# Unpin a file
To unpin a file, you will need the file's IpfsHash.
```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.unpin_file(ipfs_hash)
print(response)
```

# Get all pins
If you want to get all pins in your account:

```python
from pinata import Pinata

pinata = Pinata(ap_key, secret_key, access_token)

response = pinata.get_pins()
print(response)
```