semvec/pypi-packages huggingface dataset:
stubsplit 0.1
StubSplit.

stubsplit is a simple utility which can remove docstrings from
or insert docstrings into Python type stub files. It was originally
created for the pandas type stubs shipped with pylance, which 
had some docstrings added because they were not available in the
pandas package. It has since been replaced by a newer utility,
`docify`, which does not rely on static files containing docstrings
but can get the most up to date docstrings via reflection on the
imported module. That said, stubsplit can still be useful for
removing docstrings, e.g. from Python stubs generated by pyright.

The algorithm used is a blunt instrument (crude and kludgy parser)
but "good enough" for the use cases we have applied it to. It 
would be better to rewrite this at some point using libcst but
the effort is not currently merited.

```
Usage:
  stubsplit (split|merge) [--verbose] <stubpath> <docpath>
  stubsplit -h | --help
  stubsplit --version

Options:
  -h --help     Show this screen.
  --version     Show version.
```
blindecdh 0.1.9
A simple implementation of unauthenticated ECDH

# A simple implementation of unauthenticated ECDH

This package implements unauthenticated ECDH (the Elliptic Curve
Diffie-Hellman key agreement protocol) between two endpoints.  After the
exchange is complete, you can then add authentication to verify that both
parties are who they say they are — for example, mutual short string
authentication by displaying a derivative of the key (derived key) to
both parties, as exemplified by the
[simpleauthstrings](https://github.com/Rudd-O/simpleauthstrings) package.

Here is a sample with working code:

```
from blindecdh import ECDHProtocol
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.serialization import (
    load_pem_public_key,
)


def pubkey_to_pem(pubkey):
    return pubkey.public_bytes(
        serialization.Encoding.PEM,
        serialization.PublicFormat.SubjectPublicKeyInfo,
    )


def pem_to_pubkey(pem):
    return load_pem_public_key(pem)


# ------------------------

# Alice's side.

## Instantiate the protocol.
alice = ECDHProtocol()

## Serialize and send Alice's public key.
## The specific communications mechanism is omitted for brevity.
## We assume both parties traffic in PEM-encoded certificates.
bob_socket.send(pubkey_to_pem(alice.public_key))

## Get and deserialize Bob's public key.
bobs_public_key = pem_to_pubkey(bob_socket.receive())

## Compute the result.
result = alice.run(bobs_public_key)

## Display the derived key.  It will match Bob's.
print(result.derived_key)

# -----------------------

# Bob's side.

bob = ECDHProtocol()

## Get and deserialize Alice's public key.
## On Bob's side we do the send first, but here we receive first.
alices_public_key = pem_to_pubkey(alice_socket.receive())

## Serialize and send Bob's public key.
alice_socket.send(pubkey_to_pem(bob.public_key))

## Compute the result.
result = bob.run(alices_public_key)

## Display the derived key.  It will match Bob's.
print(result.derived_key)
```

See [module](https://github.com/Rudd-O/blindecdh/blob/master/src/blindecdh/__init__.py) for developer documentation.

This package is distributed under the GNU Lesser General Public License v2.1.
For relicensing, contact the package author.
reverse-read 0.2
A package for read reversed texts.
Requires Python: >=3.6

# Reverse Read

## installation

install :

```bash
pip install reverse-read
```

import :

```python
from reverse_read.reverse_read import reverse_read
```

## reverse_read()

Returns reversed text.

```python
# only the text-parameter is required

print(reverse_read(
    "text",
    "side", # <0 or 1>
    "sensible" # <True or False>
))
```

## Example

```python
print(reverse_read("اثممخ")) # returns "hello"
```