semvec/pypi-packages huggingface dataset:
europarl-amendment-extract 1.1.1
Extract amendments from European Parliament docx files
License: MIT

EuroParl-Amendment-Extract
===========================

This is a simple script to convert the amendments from the EP to JSON.
It follow the format define in that dataset https://zenodo.org/record/4709248#.YXesJS8itqs for the article War Of Word
https://github.com/indy-lab/war-of-words

## prerequisites

Build the MEPs dataset with the script 
`python3 meps.py`


## Debugger

To run the debugger we simply need to run 'streamlit run diff_visualizer.py', it will run the am labeler on the ep8 dataset and visualize the first error that it comes across. 


## Sequence matcher update

In diff.py there is now a extract_opcodes and extract_opcodes_v2. The v2 takes into account to merge consecutive 'replace' operations as well as 'delete' operations followed by a replace. We also display now at the end an accuracy metric that sort of roughly sketches the am labeler's performance. The accuracy is calculated by penalizing the algorithm for each edit that it gets wrong relative to the size / length of text that was attributed to the edit in question. With this evaluation metric we observed a high accuracy (99+ %) on the ep8 dataset. 


## Usage 

```python
from ep_amendment_extract import  extract_amendments

extract_amendments('file.docx')
```
mikes-toolbox2 0.0.2
Testing publishing a package to pypi
License: MIT
Requires Python: >=3.9,<4.0

# Mike's toolbox 2
This package is the result of an article that demonstrates how to create a package and publish it in a few easy steps.
There is no useful code contained in this package.

Usefull links:  
- Find the article [here](mikehuls.com) or [here](https://mikehuls.medium.com/creating-and-publishing-your-own-python-package-for-absolute-beginners-7656c893f387)   
- Find the source code for creating the package on [Github](https://github.com/mike-huls/mikes-toolbox2)

Read more / connect:
- [Personal website](https://mikehuls.com)
- [Medium profile](https://mikehuls.medium.com)
- [![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/Mike_Huls.svg?style=social&label=Follow%20Mike_Huls)](https://twitter.com/Mike_Huls)
tinytls 0.1.2
TLS1.3 protocol wrapper
License: MIT
Keywords: TLS

---------------
tinytls
---------------

tinytls is a pure python TLS1.3 protocol wrapper.

As a result of learning TLS1.3, 
I wrote this as a sample implementation of TLS1.3 client.

Builtin ssl module (CPython3.7+, OpenSSL1.1.1+) can use as TLS1.3 client,
so there is no advantage to use it especially in Python 3.

Restriction
+++++++++++++++

- Available TLS1.3 only, not TLS1.2 or under.
- Support TLS_CHACHA20_POLY1305_SHA256 cipher suite only.
- Support X25519 key exchange only.
- It does not verify TLS certificate.
- Not support `0-RTT`
- Client certificate authentication is not available.

Supported Python
+++++++++++++++++++

- Python3.7+
- MicroPython

Example
++++++++

CPython
::

   import socket
   import tinytls

   hostname = "enabled.tls13.com"

   sock = socket.create_connection((hostname, 443))
   with tinytls.wrap_socket(sock) as ssock:
       ssock.send("GET / HTTP/1.1\r\nHost:{}\r\n\r\n".format(hostname).encode())
       print(ssock.recv(4096).decode())

MicroPython
::

   import usocket
   import tinytls

   hostname = "enabled.tls13.com"

   sock = usocket.socket()
   sock.connect(usocket.getaddrinfo(hostname, 443)[0][-1])

   with tinytls.wrap_socket(sock) as ssock:
       ssock.send("GET / HTTP/1.1\r\nHost:{}\r\n\r\n".format(hostname).encode())
       print(ssock.recv(4096).decode())

Reference
++++++++++++++++++++

- https://github.com/tex2e/mako-tls13 (special thanks!)
- https://datatracker.ietf.org/doc/html/rfc8446
- https://en.wikipedia.org/wiki/Salsa20#ChaCha_variant
- https://asecuritysite.com/encryption/python_25519ecdh

Check the server
+++++++++++++++++++++++++++++

If you cannot connect to the server with tinytls,
use a command like the following to check if the server can be connected

::

   openssl s_client -tls1_3 -ciphersuites 'TLS_CHACHA20_POLY1305_SHA256' \
                                -state -debug -connect enabled.tls13.com:443