semvec/pypi-packages huggingface dataset:
octocruncher 0.2.0
A simple package to implement the Octopart API version 4
Requires Python: >=3.6

# Octocruncher V4

Use this to query Octopart using the v4 API

To function with active requests, the OCTOPART_API_KEY environment variable must
be set. This can be done in your Python using the following:

```python
import os
os.environ['OCTOPART_API_KEY'] = 'xxxxxxxxx'
```

## Usage
```python
from octocruncher import OctoCruncher

# Setup the manufacturer part number here
x = OctoCruncher(mpn='mpn')
```

OctoCruncher takes in the argument 'mpn' (manufacturer part number) which
everything else is based off of. Other optional arguments:

json_source: You can provide a json.load[s]() object instead of querying online.
This is helpful for when you want to cache (use with OctoCruncher.getJSON())

file_source: Similar to json_source but will load from the given file path

## Callables

### .getNumItems():
This tells you how many results there are

### .setItemNumber(itemnumber=0)
This sets the working item for all other functions

### .getMPN():
Returns working manufacturer part number

### .getJSON():
This will return a json object that can be cached and loaded later

### .getNumDescriptions():
Tells you how many available part descriptions there are

### .getDescription(n=0):
Returns the nth description. If n is not specified, the 0th
description will be returned. Returntype is a description class which has the
`value` and `source` elements

### .getNumDatasheets():
Tells you how many datasheets are available

### .getDatasheet(n=0)
Returns the nth Datasheet object. This object has the
following parameters that can be accessed:
```
date_created
last_updated
num_pages
size_bytes
date_created
mimetype
url
source
```

### .getManufacturer():
This returns a manufacturer object with the `name` and `homepage_url` attributes
airi.py 0.2.0
An async wrapper for Airi API written in Python.
Keywords: airi,anime-api,anime,python,airi-api-wrapper

# airi.py
An async wrapper for [Airi](https://airi.kyoyo.me/) API written in Python.

## Key Features
- An async library.
- Anime fact, waifu & more!
- Especially made for discord bots.
- Easy to use with an object oriented design.


## Installing

**Python 3.8 or higher is required**

You can install it by following command:

```cmd
pip install airi.py
```

## Quick Example
    
To check whether your AIRI API TOKEN is correct or not.

```py
import airi
import asyncio

async def test():
    
    """
    To check whether your AIRI API TOKEN is correct or not.
    returns: status code
    """

    client = airi.Client("TOKEN")
    # above, TOKEN is AIRI API TOKEN
    status = await client.status()

    print(status)
    
asyncio.get_event_loop().run_until_complete(test())
```
check [examples](https://github.com/EitoZX/airi.py/tree/master/examples) folder for more!

# FAQ

## How do I get the Airi API token?
To get the token, [join Discord server of Airi](https://discord.gg/yyW389c). Move to `#bot-commands` channel. And do `-claim`. 

From here, further process should start in your DM. Good luck!

## My Token is not working anymore. Why?
Make sure that you've joined the support server, or else it won't work. If it's still not working, please ask for help in their official server.

## Any ratelimit?
Yes, 5 requests/second.

## API website?
Here: https://airi.kyoyo.me/

## Related Links

- [Official Airi Server](https://discord.gg/yyW389c)
- [My Server (for help)](https://discord.gg/7Ex2TEPvAn)
- [Documentation](https://airipy.readthedocs.io/en/latest/)