semvec/pypi-packages huggingface dataset:
oppaipy 1.0.4
A simple object-oriented python3 wrapper around the python bindings of oppai-ng

# oppaipy

oppaipy is a simple object-oriented python3 wrapper around the python bindings of [oppai-ng](https://github.com/Francesco149/oppai-ng).

## Usage
```
$ pip install oppaipy
```

There are 5 steps to using oppaipy:

1. Initialise
2. Set parameters
3. Calculate
4. Check results
5. Release resources

### Example
```python
>>> import oppaipy
>>> calc = oppaipy.Calculator()
>>> calc.set_beatmap("/path/to/beatmap")
>>> calc.set_misses(1)
>>> calc.set_combo(2354)
>>> calc.calculate()
>>> print(calc.pp)
727.3976135253906
>>> calc.close()
```

There is some extra syntactic sugar to make it shorter for simple usage however

### Simple example
```python
>>> import oppaipy
>>> with oppaipy.Calculator("/path/to/beatmap", misses=1) as calc:
...     print(calc.calculate())
(7.8976135253906, 727.3976135253906)
```

## API
```python
# Setting parameters
Calculator.set_beatmap(beatmap_path)
Calculator.set_mods(mods)
Calculator.set_combo(combo)
Calculator.set_accuracy_percent(accuracy)
Calculator.set_accuracy(count_100, count_50)
Calculator.set_misses(misses)
Calculator.set_score_version(score_version)
Calculator.set_base_ar(ar)
Calculator.set_base_od(od)
Calculator.set_base_cs(cs)
Calculator.set_base_hp(hp)
Calculator.reset()

# Calculating
Calculator.calculate()

# Getting values
Calculator.pp
Calculator.aim_pp
Calculator.speed_pp
Calculator.acc_pp
Calculator.stars
Calculator.aim_stars
Calculator.speed_stars

# Cleanup
Calculator.close()
```

## Why should I use this?
You get the speed of the C bindings with a pythonic object interface.

## Why the name "oppaipy"?
I already used "OOppai" for [the wrapper of the original oppai's bindings](https://github.com/Syriiin/OOppai), and I didn't like the look of "OOppai-ng".
pyshbullet 1.1.50
Python API wrapper for the pushbullet API
Requires Python: >=3.6

# Pyshbullet v1.1.50
#### Pyshbullet is a async-based API wrapper for the Pushbullet API service.
#### Example usage:
```python
import pyshbullet
import asyncio
import os
client = pyshbullet.APIClient(TOKEN)
async def main():
  userobj = await client.get_current_user()
  print(userobj.created)
  pushesobj = await client.get_push_history(limit=2)
  print([message.sent.strftime('%m-%d-%Y') for message in pushesobj])
  chats = await client.list_chats()
  print([chat.created.strftime('%m-%d-%Y') for chat in chats])
  print([chat.chatting_with.name for chat in chats if chat.chatting_with != None])
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
@client.event
async def on_message(message):
  print(f"Message sent: {message.sent.strftime('%m-%d-%Y')}")
  print(f'Message content: {message.content}')
  print(f'Message type: {message.type}')
  print(f'Message image url: {message.image_url}')
  print(f'Message file url: {message.file_url}')
  print(f'Message author: {message.author.name}')
  print(f'Message author email: {message.author.email}')
@client.event
async def on_run():
  print('Started running.')
client.run()
```
#### Replace TOKEN with your Pushbullet API token.
#### The code above gets the user associated with the API token, and will listen to the websocket. Once a new message is sent, it prints out the data of the message.
#### Documentation will be added in the future.