semvec/pypi-packages huggingface dataset:
contextvars-executor 0.0.1
contextvars friendly ThreadPoolExecutor
Requires Python: >=3.7.0
Keywords: asyncio,contextvars

contextvars_executor
====================

:info: contextvars friendly ThreadPoolExecutor

.. image:: https://travis-ci.org/hellysmile/contextvars_executor.svg?branch=master
    :target: https://travis-ci.org/hellysmile/contextvars_executor

.. image:: https://img.shields.io/pypi/v/contextvars_executor.svg
    :target: https://pypi.python.org/pypi/contextvars_executor

.. image:: https://codecov.io/gh/hellysmile/contextvars_executor/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/hellysmile/contextvars_executor

Installation
------------

.. code-block:: shell

    pip install contextvars_executor

Why???
------

* `related Python issue <https://bugs.python.org/issue34014>`_

Usage
-----

.. code-block:: python

    import asyncio
    import contextvars

    from contextvars_executor import ContextVarExecutor

    ctx = contextvars.ContextVar('42')


    def thread():
        ret = ctx.get()

        assert ret == 42

        return ret


    async def main(*, loop):
        ctx.set(42)

        ret = await loop.run_in_executor(None, thread)

        assert ret == 42


    loop = asyncio.get_event_loop()
    loop.set_default_executor(ContextVarExecutor())
    loop.run_until_complete(main(loop=loop))

Python 3.7+ is required, there is no need to support older python versions!!!
keras-utils 1.0.13
Extended utilities for Keras
Keywords: keras utilities

# Keras Utils

This package provides utilities for Keras, such as modified callbacks, genereators, etc.

## Installation

To install the package from the PyPi repository you can execute the following
command:
```sh
pip install keras-utils
```

## Usage

The usage of the package is simple:
```py
import keras
import keras_utils

# build your model
model = get_model(input_shape, num_classes=num_classes, reserve_layers=reserve_layers)

# build your train-set & validation-set generators
train_generator = ImageDataGenerator().flow_from_directory(
        train_images_path,
        target_size=target_size,
        batch_size=batch_size,
        color_mode='rgb',
        class_mode='categorical',
        seed=seed,
        shuffle=True
)

valid_generator = ImageDataGenerator().flow_from_directory(
        valid_images_path,
        target_size=target_size,
        batch_size=1,
        color_mode='rgb',
        class_mode='categorical',
        shuffle=False
)

# create a validation-callback which tests the validation-set every 10 epocks
valid_callback = ValidateCallback(10, valid_generator, model)

# create a save-callback which saves the model every 20 epochs under the name "model_name"
save_callback = SaveCallback(20, 'model_name.model', model)

# train your model
model.fit_generator(generator=train_generator,
                    epochs=epochs,
                    verbose=1,
                    workers=8,
                    callbacks=[valid_callback, save_callback])

```
ai-maze 1.0.1
Simple Maze Traversal Project
Keywords: ai maze project

# AI-Maze

This program is for a school project in AI. The purpose is to have the agent traverse the left side of the maze until it finds the entrance. Once found, it will make a node and start its path inside the maze until it finds the exit. Once the exit is found, the path traveled is printed.

- Code written by Jody Bailey
pypi-install 0.0.5
Uploading code to PyPi made easy

# PyPi Install
### Introduction

PyPi-Install enables you to upload Python code on [pypi][d1] using just a single function call.
After running this, you can install your library using the famous `pip install mylibary` command from any terminal. 
### Note 
This libaray only attempts to automate steps listed on the [official website][d2]
Furthermore, if you want to know more about pypi, head [here][d3]

### Usage

##### Pre Requisites
Before using, you must have the following:
 - Your code uploaded on [GitHub][d4]
    - Copy your github URL link          
 - Your account made on [PyPi][d1]
    - Remember your username and password, they will be used in the code below

##### Installation
Install using pip:
``` 
pip install pypi-install
```

##### Configuration
Configure all connection parameters here.
```python
from pypi_install import pypi_install as PI
pypirc_username="my_pypi_username" # for e.g. "new_john"
pypirc_password= "my_pypi_password" # for e.g. "john123"
directory_of_new_folder = "path_new_directory" # for e.g. "/home/USER/New_Folder"
version_number="your_project_version_no" # for e.g. "0.0.2"
author_name_full="full_author_name" # for e.g. "John Smith"
author_email="author_email" # for e.g. johnsmith123@hotmail.com
short_description="short_description" # for e.g. "My first PyPi project"
github_url="your_code_github_url" # for e.g. https://github.com/USER/my_respistory
python_version="python_version_in_your_computer" for e.g. "3" or "2"
name_of_project="name_of_pypi_project" for e.g. "my_pypi_code"
directory_of_python_files=["PATH/my_python_file_1.py","PATH/my_python_file_2.py"] # Include all the python files here
```
##### Uploading the code! 
Run Your function
```python
make_pypi_folders(pypirc_username,pypirc_password,directory_of_new_folder,name_of_project,directory_of_python_files,version_number,author_name_full,author_email,short_description,github_url,python_version,invoke_python_by_name='python',license_type="MIT License",operating_system="OS Independent") # There, your code is uploaded on pypi! It's that easy!
```

##### Checking your recently installed package
To check your package, run this in terminal:
```
pip install your_package_name
```
It should be installed! 




   [d1]: <https://pypi.org/>
   [d2]: <https://packaging.python.org/tutorials/packaging-projects/>    
   [d3]: <https://packaging.python.org/tutorials/packaging-projects/>  
   [d4]: <https://github.com/>
unapid 0.0.1
Prints some useful tables.

# unapid
Prints some useful tables.

## Install:

<!-- Test newly uploaded distribution: -->
python -m pip install unapid

## Example use:

python -m unapid

## Packaging:

I'm using the following tutorial to upload my project to git so that it can be installed via pip:
https://packaging.python.org/tutorials/packaging-projects/#create-an-account

<!--
  1) Create project from git because it automatically creates:
       - README.md
       - LICENSE
  2) Create a __init__.py file inside project/project directory
  3) Create a setup.py file in project directory (copy from above website)
 -->

<!-- Install/upgrade setuptools/wheel (not every time)-->
<!-- python -m pip install --user --upgrade setuptools wheel -->

<!-- Install/update twine (not every time) -->
<!-- python3 -m pip install --user --upgrade twine -->

<!-- Generate distribution: -->
python setup.py sdist bdist_wheel

<!-- Upload distribution: -->
twine upload dist/*