semvec/pypi-packages huggingface dataset:
auto-py-notion 0.1.2
integrate notion api with your workflow
License: MIT

# NotionPy

for creating,updating and querying databases and pages ,
NotionPy is a python module to help you integrete notion with your software/workflow

# installation

in your terminal :

```
pip install auto-py-notion
```

# Requirments

before we get started there are a couple of things we need to do :

1. create an integration and grab a token from [here](https://www.notion.com/my-integrations)
1. share the integration with you database or page
1. get the id of the database or page :
   `https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...`

   the database id is before the question mark and after the backslash

more details from [official notion docs](https://developers.notion.com/docs)

# Getting Started

let's create a sample page inside a database :

```python
from NotionPy.notionpy import NotionClient

inst = NotionClient("Your integration token")

inst.create.page(
    database_id="the id of database of choice",
    data=[      # List of tuples # provided properties must be created first in the db
        ("Name", "title", "kareem"),
            ("price", "number", 254),
            ("to-do", "checkbox", False),
    ],
    #Optional
    icon="ðŸ”¥",
    #Optional
    cover="https://images.unsplash.com/photo-1523867574998-1a336b6ded04?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8Y292ZXJ8ZW58MHx8MHx8&w=1000&q=80",
)
```

-> Note that the data inserted must be [ ( prop_name ,type ,value ) ]

- currently there is no support for creating empty pages or empty values but look forward for feature updates

retreiving data from a database :

```python
inst.query.db("id of the database",
                in_json=True, #Optional
                json_indent=2, #Optional
                print_data=True #Optional
            )
```

## Supported properties type

        -title          -rich_text
        -select         -multi_select
        -relation       -people
        -checkbox       -url
        -files          -email
        -phone          -number

## NotionPy 0.1.2 , What's New !

---

- sorting in queryring databases
- filtering in queyring databases
- Bug fx

## Notes

- there are other modules that interact with notion's API so what makes this module different ? it is the fact that , as far as my research went , it is the most userfriendly and practical one
- This module is still has a lot to offer in the future , so all of your suggestions , issues , contributions are very welcomed
fivesim-python 0.0.1
A simple Python API for 5sim.net
License: MIT
Keywords: api 5sim

# FiveSim

A simple Python API for <a href="https://5sim.net/">5sim.net</a>
#


## Installation

Before proceeding, you should register an account on [5sim.net](https://5sim.net/) and [generate a personal API key](https://5sim.net/settings/security) to use. 

Install from source:

``` bash
pip install git+https://github.com/squirrelpython/fivesim-python.git
```

Alternatively, install from [PyPI](https://pypi.org/project/fivesim-python/):

```bash
pip install bscscan-python
```
<hr>

#### Client 

```python
from fivesim import FiveSim

# These example values won't work. You must get your own api_key
API_KEY = 'ey.............' 

client = FiveSim(API_KEY) 
```
#
### Endpoints
Official docs [here](https://docs.5sim.net/)
#### User

```python
# Balance request
client.get_balance() # Provides profile data: email, balance and rating.
```
#### Products and prices
```python

# Products request
client.product_requests(country='russia', product='telegram') # To receive the name, the price, quantity of all products, available to buy.

# Prices request
client.price_requests() # Returns product prices

# Prices by country
client.price_requests_by_country(country='russia') # Returns product prices by country

# Prices by product
client.price_requests_by_product(product='telegram') # Returns product prices by product

# Prices by country and product
client.price_requests_by_country_and_product(country='russia' ,product='telegram') # Returns product prices by country and specific product
```
#### Purchase

```python
# Buy activation number
client.buy_number(country='russia', operator='any', product='telegram') # Buy new activation number

# Buy hosting number
client.buy_hosting_number(country='russia', operator='any', product='amazon') # Buy new hosting number

# Re-buy number
client.rebuy_number(product='telegram', number='7485.....') # Re-buy number 
```
#### Order management
```python
# Check order (Get SMS)
client.check_order(order_id='12345678') # Check the sms was received

# Finish order
client.finish_order(order_id='12345678') # Finish the order after code received

# Cancel order
client.cancel_order(order_id='12345678') # Cancel the order

# Ban order 
client.ban_order(order_id='12345678') # Cancel the order if banned from the service

# SMS inbox list
client.sms_inbox_list(order_id='12345678') # Get SMS inbox list by order's id.
```

Powered by [SquirrelPython](https://github.com/squirrelpython).