semvec/pypi-packages huggingface dataset:
govyn 0.19.0
HTTP APIs in typed Python
Requires Python: >= 3.8

# govyn
![Tests](https://github.com/returnString/govyn/workflows/Tests/badge.svg) [![PyPI version](https://badge.fury.io/py/govyn.svg)](https://pypi.org/project/govyn) [![codecov](https://codecov.io/gh/returnString/govyn/branch/main/graph/badge.svg)](https://codecov.io/gh/returnString/govyn)

A tiny framework for writing async HTTP APIs in typed Python.

> **govyn** (verb) - ask, inquire, query, question, request ([Cornish Dictionary](https://www.cornishdictionary.org.uk/#govyn))

# Features
- Async everywhere!
- Method params as query string arguments
- Dataclasses as request bodies
- Authentication with principals and privileges
- OpenAPI support with built-in routes:
	- `/openapi/schema`: OpenAPI v3 schema as JSON
	- `/openapi/swagger`: embedded [Swagger UI](https://swagger.io/tools/swagger-ui/) page for testing
	- `/openapi/redoc`: embedded [Redoc](https://redoc.ly/redoc) documentation page
- Prometheus metrics support

# Example
```python
from dataclasses import dataclass
from typing import List
from govyn import run

@dataclass
class AddRequest:
	numbers: List[int]

@dataclass
class Response:
	result: int

class CalculatorAPI:
	# run initialisation tasks, e.g. connecting to a database
	async def startup(self) -> None:
		pass

	# be a good citizen and dispose of things appropriately
	async def shutdown(self) -> None:
		pass

	# get_ methods take a query string
	# callers will receive a 400 Bad Request if they supply invalid values
	async def get_add(self, a: int, b: int) -> Response:
		return Response(a + b)

	# post_ methods take a JSON request body
	# also type-checked according to the dataclass definition
	async def post_add(self, req: AddRequest) -> Response:
		return Response(sum(req.numbers))

run(CalculatorAPI())
```

Try out the built-in Swagger UI on this [example Heroku deployment](https://govyn-demo.herokuapp.com/openapi/swagger), built from source available in the [govyn-demo](https://github.com/returnString/govyn-demo) repository!

Or, run the server locally and hit it with curl:

```bash
> curl "http://localhost/add?a=10&b=32"
{"result": 42}
> curl "http://localhost/add" -d '{ "numbers": [ 1000, 300, 30, 7 ] }'
{"result": 1337}
```

# Installation
```bash
# from PyPI
pip install govyn

# or directly from Git
pip install git+ssh://git@github.com/returnString/govyn.git
```
ou-jupyter-book-tools 0.0.4
Tools for working with Jupyter books.

# ou-jupyter-book-tools
Tools for working with Jupyter Books


Simple tools to try to map OU tagged and styled notebooks onto sensible MyST / Jupyter Book styled features.

To run the demo:


- put your notebooks into `./content` directory;
- run the appropriate conversion command(s) over them;
- build the book: `jupyter book build --path-output . content`
- view the book (in `./_build/html`).


## Tools

- `tags2myst tagstyler content` : wrap the content of [`nb_extension_tagstyler`](https://github.com/innovationOUtside/nb_extension_tagstyler) tagged cells (`alert-danger`, `alert-warning`, `alert-success`, `alert-info`) as a similarly colour themed admonition.

![](images/jupyter_book_tagstyle.png)

- `tags2myst empinken content` : wrap the content of [`nb_extension_empinken`](https://github.com/innovationOUtside/nb_extension_tagstyler) tagged cells (`alert-danger`, `alert-warning`, `alert-success`, `alert-info`) as a similarly tagged cell.
pyd-tpl 0.1.3
pyd generate tools
Keywords: pyd generate,pyd templates

# pyd_tpl
Python的C接口模板,安装后使用如下的命令进行生成:

<pre>
pyd_tpl module_name=Animal --class-name=Cat
</pre>

将生成Animal模块Cat类

## changelog

- 2022-01-15 

新增函数`get_c_string`(将Python*转换为char*)和`print`(打印PyObject*)

调用方法如下:

```python
PyObject* a;
if (!PyArg_ParseTuple(args,"U",&a))
{
    return NULL;
}
const char* s = get_c_string(a);
printf("%s\n", s);
print(a);
```
mealdb 1.0.0
TheMealDB API client
Requires Python: >=3.6

# MealDB

[![](https://img.shields.io/github/v/tag/thexxiv/mealdb-py?label=version)](https://github.com/thexxiv/mealdb-py/releases/latest) [![](https://img.shields.io/github/license/thexxiv/mealdb-py)](https://github.com/thexxiv/mealdb-py/blob/main/LICENSE)

TheMealDB API client for **Python**.

### Download
[PyPI](https://pypi.org/project/mealdb/)

```
pip install mealdb
```

### Example

```py
from mealdb import search

for meal in search("Shawarma"):
    print(meal.strMeal)
```

### Documentation

* [pdoc](https://thexxiv.github.io/mealdb-py)

### License

MealDB is released under the [Apache License 2.0](https://github.com/thexxiv/mealdb-py/blob/main/LICENSE).

```
 Copyright 2022 XXIV

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
```
easework 0.6.1
Python package that makes your work easy

# Pakage Description

Pakage Name - easework 
   
```
A python pakage that makes your work easy.
Currently have CALCULATION functions.
```



        


## Requirements

[Python 3.8.6 or more](https://www.python.org/)


## Installation



```bash
  pip install easework
```
    
## Usage/Examples

```python
# Function to add two numbers 

import easework

example = easework.add(9,7)

print(example)
```


## Authors

- [@Akul Chaudhary](https://github.com/Dimi-nutive)


## Appendix

More Functions would be added in the next update


## Support

For support or to report bugs  email easework25@gmail.com or join our [Discord Server.](https://discord.gg/HkXUkGueCd)

## Functions 

- [Calculation](https://github.com/Dimi-nutive/easework/blob/main/Calculation%20Functions)

- [Image](https://github.com/Dimi-nutive/easework/blob/main/Image%20Functions)

## Website 

- [Easework](https://dimi-nutive.github.io/easework-website/)
oneNeuron-pypi-Nitin-9 0.0.1
It is an implimentation of Perceptron
Requires Python: >=3.7

# oneNeuron_pypi
oneNeuron_pypi

# Refrence -
[official python docs(http://packaging.python.org/tutorials/packaging-projects/)]

[github docs for github actions](https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries)