semvec/pypi-packages huggingface dataset:
myclippings 0.0.6
Parses My Clippings.txt
Requires Python: >=3.7
Keywords: amazon,clippings,kindle,kindle-clippings,parser

# myclippings

---

Converts `My Clippings.txt` file into a JSON format like below:

```json
[
  "title": "Clean Code: A Handbook of Agile Software Craftsmanship",
  "author": "Martin, Robert C.",
  "clippings": [
    {
        "content_hash": "66698d9e",
        "title": "Clean Code: A Handbook of Agile Software Craftsmanship",
        "author": "Martin, Robert C.",
        "note_type": "highlight",
        "location_start": 892,
        "location_end": 893,
        "date": "2022-10-12T12:20:59",
        "content": "Leave the campground cleaner than you found it.5"
    },
    {
        "content_hash": "f31e9873",
        "title": "Clean Code: A Handbook of Agile Software Craftsmanship",
        "author": "Martin, Robert C.",
        "note_type": "highlight",
        "location_start": 783,
        "location_end": 783,
        "date": "2022-10-03T14:55:50",
        "content": "Code, without tests, is not clean. No matter how elegant it is,"
    }
  ]
]
```

Currently, it supports English and Spanish languages.

## Usage

As a CLI tool:

```bash
python3 -m myclippings.main "My Clippings.txt"
```

As a module:

```bash
pip install myclippings
```

```python
from myclippings import clippings_to_json

books = clippings_to_json("My Clippings.txt")
```
PyJwt512 0.1.18
Simple JWT Manager for ES512
Requires Python: >=3.10,<4.0

## Obsolete!
 - The package is functional, but I've decided not to further develop it.
 - You can use [joserfc-wrapper](https://github.com/heximcz/joserfc-wrapper) instead.

#
# Simple JWT Manager for ES512

A simple JWT manager with ES512 key management, token generation and validation with options to integrate into your project or use in the cli.

## Install

`pip install PyJwt512`

## Usage in CLI

```
# generate new ES512 private and public key
$ pyjwt512 keys --dir=<path>

# validate a token
$ pyjwt512 check --dir=<path> --aud=<audience> --token=<jwt token>

# get new token
$ pyjwt512 token --dir=<path> --iss=<issuer> --aud=<audince> --uid=<client id>
```

For example:

```
$ pyjwt512 keys --dir=/tmp
New keys has been saved in /tmp/001581e99ba047bca44871c4248f689c-public.pem and /tmp/001581e99ba047bca44871c4248f689c.pem files.
```
```
$ pyjwt512 token --dir=/tmp --iss=https://example.com --aud=service.example.com --uid=1234
Token:  eyJhbGciOiJF...
```
```
$ pyjwt512 check --dir=/tmp --aud=service.example.com --token=eyJhbGciOiJF...
Token is valid.
iss : https://example.com, aud : service.example.com, iat : 1704896624, uid : 1234, kid : 001581e99ba047bca44871c4248f689c
```

Print help:
```
$ pyjwt512
$ pyjwt512 keys --help
$ pyjwt512 token --help
$ pyjwt512 check --help
```

## Usage in a script

```python
import os
from pyjwt512 import Es512KeysManger

# Create new keys
es512 = Es512KeysManger()
es512.generate_new_keys()

cert_dir = "/tmp"

if not es512.save_new_keys(cert_dir=cert_dir):
    print(f"Error generating keys")

k_priv = os.path.join(cert_dir, f"{es512.get_root_filename()}.pem")
k_pub = os.path.join(cert_dir, f"{es512.get_root_filename()}-public.pem")

print(f"New keys has been saved in {k_pub} and {k_priv} file.")

```

```python
from pyjwt512 import CreateTokenException
from pyjwt512 import CreateJwtToken

# Create new token
payload = {
    "iss": "iss",
    "aud": "aud",
    "uid": 123,
}
try:
    create_token = CreateJwtToken(cert_dir="/tmp", payload=payload)
    if create_token.create():
        print(f"Token: {create_token.get_token()}")
except CreateTokenException as e:
    print(f"CreateTokenException: {str(e)}")
```

```python
from pyjwt512 import InvalidTokenException
from pyjwt512 import VerifyJwtToken

# Valid a token
jwt_token = VerifyJwtToken()
try:
    if jwt_token.validate(token="any token", audience="any audience", cert_dir="/tmp"):
        print(f"Token is valid.")
        print(f"{jwt_token}")
except InvalidTokenException as e:
    print(f"InvalidTokenException: {str(e)}")
```
Map-Helper 1.0.0
A Tool for Helping with Flood Maps
Requires Python: >=3.8

Welcome to Map_Helper  
If Scripts are in PATH, just launch the cmd prompt and 'run-Maps'  
Else, 'python -m MapHelper.MapHelper'  
Print outs will save in current directory.  
  
Print commands:  
'DDD' or 'd': Prints out sites in format to be copied and pasted into DDD components/upload sheet.  
	-Will prompt for unique file name, will save as "DDD_Names.xlsx" if left blank  
  
'KML' or 'k': Prints kml file with points that can be opened/saved in Google Earth.  
	-Will prompt for unique file name, will save as "Earth.kml" if left blank.  
	-'Color solid, random, or by FIRM?'  
		-Accepts 'random'/'r' or 'FIRM'/'f', blank will default to solid coloring.  
		-'random'- colors pins randomly and distinctly. Will reuse colors if more than 20 sites.  
		-'FIRM'- colors pins to match groups printed to FIRMette pages.  
		-blank/other- colors all pins yellow
	-'Lat/Lon in label (y/n)?'  
		-'y'- includes GPS coordinates in Site label.  
		-blank/other- does not include GPS coordinates in Site label.  
'FIRM' or 'f': Prints complete FIRMette packet in PDF.  
	-'Add labels to FIRMette masks (y/n)?'  
		-'y'- mark sites with site labels and include Applicant/WO/DI label in top left of maps.  
			-Will prompt for 'Lat/Lon in label?', same as KML prompt.  
		-blank/other- print with only dots marking sites.  
	-'Applicant Name/WO#/DI#/DR/State Abr:'  
		-Enter corresponding information for Map label, file save name.  
		-Will save with title format "DR0000-ST - Applicant Name - WO#00000 - DI#0000000 - FIRMette.pdf"  
'QUIT' or 'q': End program and remove Input file.