semvec/pypi-packages huggingface dataset:
PyNekosOO 2.0.3
Python client for the https://nekos.moe/ API
License: MIT
Keywords: Nekos.moe,Neko,Nekos API

PyNekosOO: a Python wrapper for the Nekos.moe API

`PyNekosOO` provides a simple and pythonic way to use the [Nekos.moe API](https://docs.nekos.moe/). Fork of [ChoiYun's wrapper](https://github.com/ChoiYun/PyNekos) focused on allowing the user not to work with raw json data.

The full documentation for `PyNekosOO` can be found [here](https://github.com/MinekPo1/PyNekos/blob/main/docs/doc.md).

Setup

Some functionalities of the API require authentication, for example posting images, regenerating the token adding likes and favorites. If you want to use these functionalities you have to have an account. Create one [here](https://nekos.moe/register). Note that this is optional as you can use most of the wrapper with out an account.

Installation

`PyNekosOO` requires Python 3.8 or above.

Use `pip` to install the package from PyPI:

```bash
pip install PyNekosOO
```

Authorisation

If you want to use to use functionalities of the API requiring authorisation, you'll need the token. To get the token, you'll need your credentials:

```python
from PyNekosOO import *
nyan = Neko(username='myuser', password='iwillnotshowyouthis')
nyan.get_token()
```

Afterwards the `Neko` instance is authorised.

Examples

You can see the usage of all endpoints of the API in the [example files](https://github.com/MinekPo1/PyNekos/tree/main/examples).

Contributing

Please contribute! If you want to fix a bug, suggest improvements, or add new features to the project, just [open an issue](https://github.com/MinekPo1/PyNekos/issues) or fork the project.
timezonedb 0.1
timezonedb.com API [python wrapper]
License: MIT
Keywords: TIMEZONEDB,API,WRAPPER

# timezonedb.com API [python wrapper]

Wrapper for [timezonedb.com](https://timezonedb.com) API

## API Reference

Full timezonedb.com API reference can be found [here](https://timezonedb.com/api)

## HOW TO USE

### list timezone [reference](https://timezonedb.com/references/list-time-zone)

List out all available time zones supported by TimeZoneDB.

```python

from timezonedb import TimezoneDBAPI

#get timezones
api = TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})
res = api.list_time_zone(response_format="json")
print(res)
```

### get timezone [reference](https://timezonedb.com/references/get-time-zone)

Get local time of a city by its name, time zone, latitude & longtiude, or IP address.

```python

from timezonedb import TimezoneDBAPI

#get timezones
api = TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})
res = api.get_time_zone(
    response_format="json",
    by="position",
    lat="40.689247",
    lng="-74.044502",
)
print(res)
```
```python

from timezonedb import TimezoneDBAPI

#get timezones
api = TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})
res = api.get_time_zone(
    response_format="json",
    by="city",
    city="chicago",
    country="US",
)
print(res)
```


### convert timezones [reference](https://timezonedb.com/references/convert-time-zone)

Convert timestamp between two different time zone.

```python

from timezonedb import TimezoneDBAPI

#get timezones
api = TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})
res = api.convert_time_zone(
    response_format="json",
    from_zone="America/Los_Angeles",
    to_zone="Australia/Sydney",
)
print(res)
```