semvec/pypi-packages huggingface dataset:
minipip 0.1b5
Tool for installing packages for MicroPython and CircuitPython
License: MIT
Requires Python: >=3.6
Keywords: MicroPython CircuitPython pip upip

minipip
=======
Tool for installing distribution packages for MicroPython and CircuitPython.

Supports both `upip-compatible packages <https://docs.micropython.org/en/latest/reference/packages.html>`_,
and regular pip-compatible
packages (by using `pip install --target ... <https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-t>`_).

By default it prefers packages at micropython.org-s index. If the package or the required version is not
found there, then it turns to PyPI.

If ``--port`` is given and `rshell <https://pypi.org/project/rshell/>`_ is available then it uploads
the extracted files to the target device, otherwise it just extracts modules to a directory in the local filesystem.
``--target`` directory must be explicitly given in both cases. If target is at local filesystem, then
makes sure data gets synced (useful, if target is a USB volume representing MicroPython or
CircuitPython filesystem)

Installation
--------------
``pip install minipip``

Requires Python 3.6+. The only required dependencies are ``pip`` and ``setuptools``
(most likely already present).  ``rshell`` is an optional dependency.

Usage examples
--------------

* ``minipip install --port /dev/ttyACM0 --target /lib micropython-logging``
* ``minipip install --target G:\lib adafruit-circuitpython-ssd1306``

minipip -h
----------

::

    minipip [-h] [-r [REQUIREMENT_FILE [REQUIREMENT_FILE ...]]] [-p [PORT]] -t TARGET_DIR [-i INDEX_URL] [-v] [-q] [--version] {install} [package_spec [package_spec ...]]

    Meant for installing both upip and pip compatible distribution packages from PyPI and micropython.org/pi to a local directory, USB volume or directly to MicroPython filesystem over
    serial connection (requires rshell).

    positional arguments:
      {install}             Currently the only supported command is 'install'
      package_spec          Package specification, eg. 'micropython-os' or 'micropython-os>=0.6'

    optional arguments:
      -h, --help            show this help message and exit
      -r [REQUIREMENT_FILE [REQUIREMENT_FILE ...]], --requirement [REQUIREMENT_FILE [REQUIREMENT_FILE ...]]
                            Install from the given requirements file.
      -p [PORT], --port [PORT]
                            Serial port of the device (specify if you want minipip to upload the result to the device)
      -t TARGET_DIR, --target TARGET_DIR
                            Target directory (on device, if port is given, otherwise local)
      -i INDEX_URL, --index-url INDEX_URL
                            Custom index URL
      -v, --verbose         Show more details about the process
      -q, --quiet           Don't show non-error output
      --version             Show program version and exit
zillionare-em 0.1.1
earn money.
License: MIT
Requires Python: >=3.7,<4.0

# em


<p align="center">
<a href="https://pypi.python.org/pypi/em">
    <img src="https://img.shields.io/pypi/v/em.svg"
        alt = "Release Status">
</a>

<a href="https://github.com/zillionare/em/actions">
    <img src="https://github.com/zillionare/em/actions/workflows/main.yml/badge.svg?branch=release" alt="CI Status">
</a>

<a href="https://em.readthedocs.io/en/latest/?badge=latest">
    <img src="https://readthedocs.org/projects/em/badge/?version=latest" alt="Documentation Status">
</a>

</p>





* Free software: MIT
* Documentation: <https://em.readthedocs.io>


## Features

* TODO

## Credits

This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [zillionare/cookiecutter-pypackage](https://github.com/zillionare/cookiecutter-pypackage) project template.
PyParliment 0.0.3
A python library to interact with the UK Houses Of Parliment API
License: MIT

===========
PyParliment
===========


A python library to interact with the UK Houses Of Parliment API


Description
===========

The United Kingdom Houses of Parliment has a publicly available API. The API is documented `here <https://developer.parliament.uk/>`_.

As part of our `crime hotspots analysis programe <https://github.com/Reclaim-The-Night-Leeds/crime-hotspots-uk>`_ we needed a way to get data about parliment in bulk. To this end this module was developed. There are still alot of methods left to implement which we will get round to as we need them. However if you are willing to implement them then please feel free to submit a pull request.

.. _pyscaffold-notes:

Note
====

This project has been set up using PyScaffold 4.0.1. For details and usage
information on PyScaffold see https://pyscaffold.org/.
passwd-encrypt 0.2.4
A simple tool to generate RSA keys and use them to encrypt/decrypt messages.
License: MIT

# Example Package as library

This is a simple package to encrypt and decrypt strings using RSA keys.

A possible application can be to encrypt a password when [parakamiko library](http://www.paramiko.org/) is used to make a SSH connection with password. Although is preferable to make a key without password to the SSH connection, sometimes this method does not work, for example if you need to make a connection to **localhost**

As example:

This code is not recommend due to the password is going in plain text
```python
import paramiko
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(hostname='localhost', username='user', password='12345678')
client.exec_command('ls', timeout=5)
```

This code is better:

*  First generate the encrypted password in a file.:

```python
from passwd_encrypt.passwd_encrypt import pw_create_rsa_key, pw_encrypt_msg
# First you generate a couple of RSA keys and then encrypt the password.
pw_create_rsa_key("mykey")
public_key="mykey.pem.pub"
pw_encrypt_msg(public_key, '12345678')
# The password is stored in a cyphered file named "passwd_encrypted.bin"
```

* Now in the code using paramiko to stablish a SSH connection, use the following commands:

```python
import paramiko
from passwd_encrypt.passwd_encrypt import pw_decrypt_msg

# Get the pass_decrypt
private_key="mykey.pem"
pass_decrypt = pw_decrypt_msg(private_key, "passwd_encrypted.bin")

# SSH connection
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(hostname='localhost', username='user', password=pass_decrypt)
client.exec_command('ls', timeout=5)
```
The important here is to get the generated private_key in a safe place.
Using this library you can distibute a source code with SSH connection based on passwords without to reveal the password in the code.

# Example Package as program from the CLI

The program can also be use from the CLI (command line interface) as follows:

1. Activate the python enviroment (if needed)
2. Get the usage or help from the program

```python
python passwd_encrypt.py -u


======== Crypto Password: Start Job ========

#############################################
#            PASSWD_ENCRYPT                 #
#           Dr. Javier Ramos                #
#    Macromolecular Physics Department      #
#              IEM-CSIC                     #
#       https://github.com/jrdcasa          #
#############################################
 Usage:
 passwd_encrypt [--createkeys|-c] <pattern>  # Generate the private and public keys as <pattern>.pem and <pattern>.pem.pub, respectively in the working directory.
 passwd_encrypt [--encrypt|-e] <rsa public key file> <message to encrypt>   # Encrypt message with the public key.
 passwd_encrypt [--decrypt|-d] <rsa private key file> <string or file containing the message to decrypt>  # Decrypt message with the public key.

======== Crypto Password: Job Done =========
```


A example is available in the **recipes** folder as jupyter notebook.