semvec/pypi-packages huggingface dataset:
concolor 1.0.0
tool to print colored text messages, aswell a few other nice feautures
Requires Python: >=3.6

# CONColor

![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)

[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)

This is a simple package to print colored messages using ASCI to the terminal built with python 3.

# Usage of CONColor

To install this package use, 
```
pip install concolor
```

Usage of it is pretty straight-forward,
```py
from concolor import prgb, pcolor, prainbow

print(prainbow('Hello'))
print(prgb('World', rgb=[255, 0, 0]))
print(pcolor('!', 'black'))
```

CONColor has 3 main functions, 
- prainbow 
- prgb 
- pcolor

**prainbow** takes a single parameter which is text to return as rainbow

**prgb** takes 2 mandatory & 2 optional parameters. text (str), rgb (list) being mandatory and markup (list) & highlight 
(str) being optional. 
- text ; text to return
- rgb ; color of the text \[R, G, B]
- markup ; what markups to use on the text (see bellow)
- highlight ; color to highlight the text with

**pcolor** being same as prgb but instead of a rgb parameter it takes a color (see bellow for accepted ones)

# List of accepted values

    highlight_values = [
        'gray',
        'pink',
        'black',
        'yellow',
        'green',
        'blue',
        'red'
    ]

    color_values = [
        'pink',
        'blue',
        'cyan',
        'green',
        'yellow',
        'red',
        'black',
        'orange'
    ]

    text_markup_values = [
        'bold',
        'underline',
        'italic',
        'striked'
    ]

**RGB** parameter takes any values from 0 to 255.
tercolor 1.0.0
tool to print colored text messages, aswell a few other nice feautures
Requires Python: >=3.6

# TColor

![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)

[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)

This is a simple package to print colored messages using ASCI to the terminal built with python 3.

# Usage of TColor

To install this package use, 
```
pip install tcolor
```

Usage of it is pretty straight-forward,
```py
from tcolor import prgb, pcolor, prainbow

print(prainbow('Hello'))
print(prgb('World', rgb=[255, 0, 0]))
print(pcolor('!', 'black'))
```

TColor has 3 main functions, 
- prainbow 
- prgb 
- pcolor

**prainbow** takes a single parameter which is text to return as rainbow

**prgb** takes 2 mandatory & 2 optional parameters. text (str), rgb (list) being mandatory and markup (list) & highlight 
(str) being optional. 
- text ; text to return
- rgb ; color of the text \[R, G, B]
- markup ; what markups to use on the text (see bellow)
- highlight ; color to highlight the text with

**pcolor** being same as prgb but instead of a rgb parameter it takes a color (see bellow for accepted ones)

# List of accepted values

    highlight_values = [
        'gray',
        'pink',
        'black',
        'yellow',
        'green',
        'blue',
        'red'
    ]

    color_values = [
        'pink',
        'blue',
        'cyan',
        'green',
        'yellow',
        'red',
        'black',
        'orange'
    ]

    text_markup_values = [
        'bold',
        'underline',
        'italic',
        'striked'
    ]

**RGB** parameter takes any values from 0 to 255.
alfonscli 0.0.1
A package for simple interaction with Alfons

# Alfons Command Line Interface

This is a tool to publish and subscribing to MQTT packets to [Alfons](https://github.com/ntoonio/Alfons).

	$ alfonscli
		-p, --profile    Profile to load default arguments from
		-s, --server     Host:port
		-u, --user       Username
		-pw,--password   Password
		-t, --topic      Topic to subscribe/publish to
		-m, --message    Message to publish. Only subscribing if not set
		-c, --continuous Don't quit after receiving the first packet
regpyhdfe 0.0.10
Simple wrapper for PyHDFE
Requires Python: >=3.6

# regPyHDFE


## Installation:

Simple as

<pre>pip install regpyhdfe </pre>


## Documentation:

Can be found at [regPyHDFE documenation](https://regpyhdfe.readthedocs.io/en/latest/intro.html).

## Credit:

This repository is trivial compared to the work done by the people who made PyHDFE, and all credit goes to them.

## Useful links:

[regHDFE paper](http://scorreia.com/research/hdfe.pdf)

[PyHDFE repo](https://github.com/jeffgortmaker/pyhdfe)

[pyHDFE docs](https://pyhdfe.readthedocs.io/en/stable/introduction.html)
GmicEffects 0.1.2
Basic Gmic Effects
Keywords: Gmic,GmicEffects,effect,effects

INSTALLATION:

python 3.x
	pip3 install GmicEffects
python 2.x
	pip install GmicEffects

USAGE:

for help:

    from GmicEffects import GmicEffects as ge

    import PIL.Image
    
    ge.help()#for help
    
for effects list:

    from GmicEffects import GmicEffects as ge

    import PIL.Image
    
    ge.effects()#for effects list

for example:

    from GmicEffects import GmicEffects as ge

    import PIL.Image
    
    oldPhoto = ge.old_photo("myphoto.png")#old photo effect
    
    # oldPhoto is pillow object
    
    oldPhoto.save("editedPhoto.png")#saved with pillow
rgb-control 0.0.1
The script allows you to set the RGB backlight color on A4Tech Bloody keyboards.
Requires Python: >=3.6

# RGB control for A4Tech Bloody keyboard for Linux

> This script allows you to set the RGB backlight color on A4Tech Bloody keyboards.

### How to use:

- On the keyboard press `Fn` + `1`.
- Make sure you are a sudo user.
- Run the script.

### Optional arguments:
``` bash
-c    - color in hex format. Example: 00ff00 #green
-id_v - vendor id in hex format, default: 0x09DA  
-id_p - product id in hex format, default: 0xFA10  
```
AlfonsIoT 0.0.8
A package for IoTs to interact with Alfons

# Alfons IoT

This is a package for IoT's to interact with Alfons.

	import alfonsiot

	def onMessage(iot, topic, payload):
		print("onMessage", topic, payload)

	def onTopicMessage(message):
		print("Got message from specified", message)

	def onConnect(iot):
		print("Connected!", iot)

		iot.subscribe("topic", onTopicMessage)

		iot.publish("topic", "Message!")

	iot = alfonsiot.start(host="", port="", username="", password="")

	iot.onConnect = onConnect
	iot.onMessage = onMessage
eth-balancer 0.0.2
Python wrapper for Balancer Exchange
Requires Python: <4,>=3.6

# eth-balancer

eth-balancer is a python wrapper built ontop the [web3py](https://web3py.readthedocs.io/en/stable/) library to interact with [Balancer](https://balancer.finance/) solidity contracts on a public or private ethereum blockchain. 

The library defines a python function for each function defined by the solidity contracts in python, adding type hints for the arguments and return values. This makes it easier to call the contracts' function by enabling IDE features such as auto-completion. 

## Installation

You can install the `eth-balancer` package using pip:

```
python -m pip install eth-balancer
```

## Getting started

Here is how to deploy and use the [Balancer v1 BFactory solidity contract](https://github.com/balancer-labs/balancer-core/blob/master/contracts/BFactory.sol) using this library:


```python
# First, you need a connection to an ethereum node.
# Here, we are using a local node created with ganache-cli for instance.

from web3 import Web3, HTTPProvider
url = "http://127.0.0.1:8545"
w3 = Web3(HTTPProvider(url))

# We can deploy the factory as follows:

from eth_balancer.v1.core import BFactory, BPool

receipt = BFactory.deploy(w3).waitForReceipt()
factory = receipt.contract

# Alternatively, we can connect to a deployed instance:

factory_address = '0x9424B1412450D0f8Fc2255FAf6046b98213B76Bd'
factory = BFactory(w3, address=factory_address)

# All the functions defined by the solidity contract are available.
# Here is how to send a transaction to the newBPool function

receipt = factory.functions.newBPool().waitForReceipt()

# You can parse the event emitted by the function as follows:

events = receipt.events.LOG_NEW_POOL()
pool_address = events[0]["args"]["pool"]

# Here is how to make an eth-call 

return_value = factory.functions.isBPool(pool_address).call()
print(f"isBPool({pool_address}) returned {return_value}")

# And here is how to create a BPool object using the newly created address

pool = BPool(w3, pool_address)

```

## Documentation

For each solidity contract defined by Balancer, this package contains a python class with the same name and its methods also have the same name as the solidity one. This makes it easy to find the class and method you are looking for. Refer to Balancer documentation to learn how to interact with the contracts.

- [Balancer documentation](https://docs.balancer.finance/)
- [Solidity contracts for Balancer v1](https://github.com/balancer-labs/balancer-core/tree/master/contracts)
karafs 0.1.1
random funny persian name generator
Requires Python: >=3.6

# karafs کرفس
تولید اسم های رندوم فینگیلیش

## installation

```shell
➜ pip install karafs
```

## usage

## دو زبانه

```shell
➜ karafs -n 10
توت فرنگی بی ناموس
toot farangi-ye bi_namoos
غورهٔ خسته
ghoore-ye khaste
انار زره پوش
anaar-e zereh push
انگور سر سپرده
angoor-e sar sepordeh
زلزلک نادان
zalzalak-e naadaan
سیب ورپریده
sib-e varparideh
فندق عقدهای
fandogh-e oghde_ee
گریپ فروت قزمیت
grip froot-e ghozmit
نارگیل پرورده
nargil-e parvardeh
تن ماهی تافته
ton maahi-ye tafteh
```

## فقط انگلیسی

```shell
➜ karafs -n 10 -en
shaftaaloo-ye boland parvaz
baalang-e khoshhal
porteghal-e foroo_heshteh
piyaz-e oghde_ee
fandogh-e afsordeh
gheisi-e kar azmoodeh
piyaz-e gomashteh
limoo shirin-e zhoolideh
senjed-e tafteh
ananas-e khafan
```

## فقط فارسی

```shell
➜ karafs -n 10 -fa

کیوی شارلاتان
لوبیا چیتی چابک
نوشابهٔ مفلس
تن ماهی اسکل
انار آلوده
انجیر پرورده
توت خسته
خیار رهیده
کمبوزهٔ شراب زده
گلابی فرسوده
```

## option `-n`
با این آپشن میتونید تعداد دفعات تولید اسم رندوم رو مشخص کنید.
اگر تنظیمش نکنید به طور پیشفرض تعداد 1 در نظر گرفته میشه.

```shell
➜ karafs -n 5
```

## option `--no-space`
با این آپشن میتونید خروجی رو بدون فاصله بین کلمات بگیرین:

```shell
➜ karafs --no-space -n 10
```

## use as library
شما میتونید کرفس رو به عنوان یک کتابخانه توی برنامه هاتون استفاده کنید.

```python
import karafs

print(karafs.gen_str()) # generate a random name (finglish)
print(karafs.gen_str('fa')) # generate a random name (persian)

print(karafs.gen_str_without_space()) # generate a random name without whitespace (finglish)
print(karafs.gen_str_without_space('fa')) # generate a random name without whitespace (persian)
```
ABayesianC 1.0.8
A general-purpose approximate Bayesian calculation
Requires Python: >=3.6

# Approximate Bayesian calculation (ABC)

This package conducts ABC on a given model and parameters. Basically, ABayesianC does the following:

- Sample uniformly from the n-dimensional space of the free parameters 

- Create a parameter set for each of sample set

- Run the given model for each parameter set and collect the error value

- Choose the best fits by the rejection algorithm 

  
## Getting started

### Quick start

`pip install --upgrade ABayesianC`

```py

# inside your script, e.g. test.py

from ABayesianC import tools

obj = tools.ABC(settings = settings, free_params = free_params)

obj.sample()

obj.run()

obj.postprocess()

```


### More on it

The module receives two inputs from users.  First, the free parameters' list that is a python dictionary containing the names and bounds (min and max) of each free parameter, as shown below:

```python
free_params = {
    'p_name_1': [1.1,4.3], # [min,max]/ Prior
    'p_name_2': [6.4,23.1]
}
```
Second, the settings variable that is another python dictionary containing:

```py
settings = {
    "MPI_flag": True, # whether to use MPI or not
    "sample_n": 10000,  # Sample number
    "top_n": 100, # Number of top selected samples, i.e. posterior
    "output_path": "outputs", # Relative output directory to save the results
    "replica_n":3 #  number of replica run for each param set
    "model": Model # the model that receives the parameter set and returns the error value
        
}
```
The provided `model` must:
- receive a parameter set as argument 
- has a function named `run` 
- the `run` function runs the model and returns back the error/fitness value

### Parallel run

To run the constructed script, e.g. `test.py`, in parallel, commain in terminal,

```py
mpiexec -n available_cpu_core python test.py
```
`available_cpu_core` is the CPU core number that user intend to allocate for this process. For more info, see [MPI for Python](https://mpi4py.readthedocs.io/en/stable/).

### Outputs

Among the library outputs are:
- `samples.txt`: the samples in the n-dimensional space of the free parameters
- `distances.txt`: the distances/errors/fitness values obtained for each parameter set
- `best_distances.txt`: the best n distances. n is defined in the settings 
- `posterior.json`: the posteriors extracted for each free parameter using top n best fit
- `medians.json`: the medians of the posteriors for each free parameter. These values can be considered as inferred values.

## Install

Using pip manager:

-  `pip install --upgrade ABayesianC`

Or, download the package and in the root folder, command:

-  `python3 setup.py install`

## Authors

- Jalil Nourisa

## Useful links

 [MPI for Python](https://mpi4py.readthedocs.io/en/stable/).

## Contributing to ABayesianC
In case of encountering a problem, pls report it as an issue or contant the author (jalil.nourisa@gmail.com)
slidetemplater 0.0.6
A client API for slidetemplater.com
Requires Python: >=3.6

# SlideTemplater.com Python API

This is a simple client API for SlideTemplater.com

Please see documentation there for how to prepare a presentation for templating

You can use it as the following:

~~~
import slidetemplater.api

result = slidetemplater.api.convert(open(
    'covid.pptx', 'rb'), "https://api.coronavirus.data.gov.uk/v2/data?areaType=overview&metric=cumPeopleVaccinatedFirstDoseByVaccinationDate&format=json")

f = open('result.pptx', 'w+b')
f.write(result)
f.close()
~~~