semvec/pypi-packages huggingface dataset:
void-proton 0.1.0
A proton sized python framework for building backend web applications
License: MIT
Requires Python: >=3.6

# PROTON : A proton sized web framework

Proton is an Express inspired proton sized web framework for building backend web applications from [void](https://github.com/void-verse). Currently, it has features of adding routes, controllers and sending API responses (Refer the [example blog app](https://github.com/NandanunniAS/Nano-Blog-App) for reference). Defining models with custom field types is also available but is under development.

**Status** : Under developement
<br />

### To run example app

```bash
$ pip3 install -r requirements.txt

$ python3 main.py run:<appname>
```

## Documentation

**Step 1**: Install proton and create folder structure

```bash
$ pip3 install proton-py

$ touch models.py
$ touch controllers.py
$ touch routes.py
$ touch main.py
```

<br />

**Step 2**: Define your models

```python
# models.py
from proton.db import model

class User(model.Model):
    username = model.StringType('username', max_length=50, min_length=4, unique=True, required=True)
    # define your model here
```

<br />

**Step 2**: Define your controllers

```python
# controllers.py
from proton.handler import Response

def index(req):
    # define your controller here
    return Response(status=200, data={"msg": "message"})
```

<br />

**Step 3**: create a router and assign controllers with routes

```python
# routes.py
from proton.handler import Router
from .controllers import index

router = Router()
router.get("/", index)
```

<br />

**Step 4**: create proton app and assemble your router and models

```python
# main.py
from proton import Proton, run
from .routes import router
from .models import User

api = Proton()

api.set_router('/api', router)
api.set_models(User)

run(api)
```

<br />

**Step 5**: Boot your models to db and run the server

```bash
$ python3 main.py run:db
$ python3 main.py run:api
```

Refer the [example blog app](https://github.com/NandanunniAS/Nano-Blog-App) for folder structure. Working on a better documentation
github 1.2.7
An asynchronous python wrapper around the GitHub API
License: MIT
Requires Python: >=3.8.0

Github API Wrapper
==================

.. image:: https://discord.com/api/guilds/963406460107235328/widget.png
  :target: https://discord.gg/DWhwsQ5TsT
  :alt: Discord Server Invite

Easy to use Python wrapper for the **Github API**.

Key Features
------------
- Modern Pythonic Interface
- Easy to use


Installing
----------

**Python 3.8 or higher is required to run the library**

To install the library, run the following command:

.. code:: sh

  # On Linux or MacOS
  python3 -m pip install -U git+https://github.com/VarMonke/Github-Api-Wrapper
  
  # On Windows
  py -m pip install -U git+https://github.com/VarMonke/Github-Api-Wrapper
  
Quick Example
-------------
  
.. code:: py
  
  import github
  import asyncio
  
  async def main():
    client = await github.GHClient()

    user = await client.get_user(user='GithubPythonBot')

    print(user)
    print(user.html_url)

  asyncio.run(main())

.. code:: sh
  # Output
  <User login: 'GithubPythonBot', id: 104489846, created_at: 2022-04-27 07:31:26>
  https://github.com/GithubPythonBot

  
Links
-----
- `Discord Server <https://discord.gg/DWhwsQ5TsT>`_
- `GitHub API Documentation <https://docs.github.com/en/rest>`_