semvec/pypi-packages huggingface dataset:
toucai 0.1.0
Python Boilerplate contains all the boilerplate you need to create a Python package.
Requires Python: >=3.6
Keywords: toucai

======
toucai
======




.. image:: https://pyup.io/repos/github/leokster/toucai/shield.svg
     :target: https://pyup.io/repos/github/leokster/toucai/
     :alt: Updates



Python Boilerplate contains all the boilerplate you need to create a Python package.



Features
--------

* TODO

Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.1.0 (2022-12-21)
------------------

* First release on PyPI.
cpr-gym 0.7.0
Gym environment for attacking proof-of-work protocols with RL
Keywords: proof-of-work consensus rl gym selfish-mining reinforcement-learning

# Consensus Protocol Research

CPR is a toolbox for specifying, simulating, and attacking proof-of-work
consensus protocols. In this repository you find
- protocol specifications for Bitcoin, Ethereum PoW, and others,
- implementations of known attacks against these protocols,
- a simulator that executes the specified protocols and attacks in a,
  virtual environment,
- tooling for automatic attack-search with reinforcement learning (RL) and
- evaluation scripts and notebooks for the above.

I'm working on [a website](https://pkel.github.io/cpr/) with more details.

## Python/RL Quickstart

CPR provides an OpenAI Gym environment for attack search with Python RL
frameworks. If you meet the following **requirements**, you can install
it from PyPI.

- Unix-like operating system with x86_64 support
- CPython, version >= 3.9

```shell
pip install cpr-gym
```

If this worked, you are ready to go. The following snippet simulates
2016 steps of honest behaviour in Nakamoto consensus.

```python
import gym
import cpr_gym

env = gym.make("cpr-nakamoto-v0", episode_len = 2016)
obs = env.reset()
done = False
while not done:
    action = env.policy(obs, "honest")
    obs, rew, done, info = env.step(action)
```

## Install from Source

The protocol specifications and simulator are OCaml programs. Also most
parts of the Gym environment are written in OCaml. The Python module
`cpr_gym` loads the OCaml code from a pre-compiled shared object named
`cpr_gym_engine.so`. In order to install the package from source, you
have to build this shared object and hence have the OCaml toolchain
installed.

**Opam** is the OCaml package manager. It's a bit like Python's `pip` or
Javascript's `npm`. We use it do download and install our OCaml
dependencies and to manage different versions of the OCaml compiler.
Make sure that a recent version (>= 2.0) is installed on your system.
[Follow these instructions](https://opam.ocaml.org/doc/Install.html).
Then use `make setup` to get compiler and dependencies setup in the
current working directory under `_opam`. Later, e.g. when dependencies
change, run `make dependencies` to update the toolchain. If you ever
suspect that the OCaml dependencies are broken, and you do not know how
to fix it, delete the `_opam` directory and run `make setup` again.

**Dune** is an OCaml build system. We use it to build executables and
shared objects, and to run tests. You do not have to interact with dune
directly. Just run `make build` to test whether the OCaml build works.

Now, installing `cpr_gym` as editable Python package should work. Try
`pip install -e .` and follow the short Python example above. If it
works, you're ready to go.

`import cpr_gym` tries to detect editable installs. If so,
`cpr_gym_engine.so` is loaded from the OCaml build directory
(`./_build`). You can rebuild the DLL with `make build`.

It might be useful to install all Python development dependencies with
`pip install -r requirements.txt`. Afterwards, you can run the full test
suite, OCaml and Python, with `make test`.
django-bpmn-widget 1.0.1
django bpmn modeler widget(integrated with properties panel)
Requires Python: >=3
Keywords: django,bpmn,widget

# django-bpmn-widget ![](https://img.shields.io/badge/language-Python3-brightgreen.svg)
django bpmn modeler widget(integrated with properties panel)

## Usage
1. Install django-bpmn-widget
```shell
pip install django-bpmn-widget
```
2. Add `bpmn_widget` to `settings.py` `INSTALLED_APPS`, like this:
```python
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'bpmn_widget'
]
```
3. Display in Form
```python
from django import forms

from yourapp.models import MyModel
from bpmn_widget.widgets import BPMNWidget # import widget


class MyModelForm(forms.ModelForm):
    class Meta:
        model = MyModel
        widgets = {
            'content': BPMNWidget() # change it to the field you want to display
        }
        fields = '__all__'
```
4. Display in Django-Admin
```python
from django.contrib import admin

from yourapp.models import MyModel
from yourapp.forms import MyModelForm


class MyModelAdmin(admin.ModelAdmin):
    form = MyModelForm

admin.site.register(MyModel, MyModelAdmin)
```

## Note
The following is the js library for widget integration
- bpmn-js@10.2.1
- bpmn-js-properties-panel@1.10.0
- camunda-bpmn-moddle@7.0.1

If you want to update their version or extend other plug-ins, please compile them yourself

## Screenshot
![img.png](https://github.com/walirt/django-bpmn-widget/blob/main/screenshot/img.png?raw=true)


## Reference
[bpmn-js](https://github.com/bpmn-io/bpmn-js)  
[django-bpmn](https://github.com/jplobianco/django-bpmn)  


# License
![](https://img.shields.io/badge/License-MIT-blue.svg)
trezor-pass 1.5.1
Trezor Password Manager Command-Line interface
Requires Python: >=3.10, <4
Keywords: trezor,password

# Trezor Password Manager CLI

<p align="center">
  <img src="./recording.svg" />
</p>

Command-line alternative to the [Trezor Password Manager](https://trezor.io/passwords/) project. This project is aiming for compatibility in password store encryption, encoding and structure. Users will be able to read and write to the same password store regardless of which project they use.

### Run

- Install with pip: `$ pip install trezor-pass`
- Run: `$ trezor-pass`

### Limitations

Current version has some limitations

- Only reading is supported at the moment, store creation and updates will come later on.
- Tested on Trezor One. Some additional complexity around PASSPHRASE on Trezor T needs to be handled. (Might be bypassed by correctly setting the PASSPHRASE env variable)
- Google Drive storage is not yet supported (Can be bypassed by direcly specifying the store file)
daku 0.0.1.5
Python package that contains the data of world's countries,states and their cities name
Keywords: capregsoft,hawqal,world data,states,cities,husnain khurshid

![](http://ForTheBadge.com/images/badges/made-with-python.svg)

# Hawqal

Python package that contains the data of world's countries,states and their cities name

## Functions

- Get Countries
- Get Cities By State
- Get State By Country
- Get Cities By Country

## Usage/Examples

```python
from hawqal.country import Country
Country.getCountries()

from hawqal.city import City
City.getCities()

from hawqal.states import StatesByCountry
StatesByCountry.getStates()

```

## Success Response

- ['Afghanistan', 'Aland Islands', 'Albania', 'Algeria', . . . ]
- ['Alabama', 'Alaska', 'American Samoa', 'Arizona', . . . ]

## Error Response

- [ ]

## Tech Stack

**Client:** Python 3.10.9

## Authors

- [Husnain Khurshid](https://www.github.com/husnain9)
- [Capregsoft](https://github.com/capregSoft/)