semvec/pypi-packages huggingface dataset:
cobhan 0.4.3
Cobhan FFI
License: MIT
Requires Python: <4.0,>=3.7
Keywords: ffi

# Cobhan FFI

Cobhan FFI is a proof of concept system for enabling shared code to be written in Rust or Go and consumed from all major languages/platforms in a safe and effective way, using easy helper functions to manage any unsafe data marshaling.

## Types

* Supported types
    * int32 - 32bit signed integer
    * int64 - 64bit signed integer
    * float64 - double precision 64bit IEEE 754 floating point
    * Cobhan buffer - length delimited 8bit buffer (no null delimiters)
        * utf-8 encoded string
        * JSON
        * binary data 
* Cobhan buffer details
    * Callers provide the output buffer allocation and capacity
    * Called functions can transparently return larger values via temporary files
    * **Modern [tmpfs](https://en.wikipedia.org/wiki/Tmpfs) is entirely memory backed**
* Return values
    * Functions that return scalar values can return the value directly
        * Functions *can* use special case and return maximum positive or maximum negative or zero values to
            represent error or overflow conditions
        * Functions *can* allow scalar values to wrap
        * Functions should document their overflow / underflow behavior
perturbate 0.1.0
This project is about the NLP task for text perturbation using different methods.
License: MIT
Requires Python: <4.0,>=3.10

### Text Perturbation

This project is about the NLP task for text perturbation using different perturbation methods.
There are around 11 different methods.

1. "delete_random_word"
2. "replace_synonyms"
3. "backtranslation"
4. "paraphrase_using_bart"
5. "replace_with_hypernyms"
6. "random_german_word"
7. "predict_masked_word"
8. "misspelling"
9. "random_char_insertion"
10. "random_char_swaps"
11. "ocr_augmentation"
pynentry 0.1.7
A pythonic wrapper around pinentry for secure password input
License: MIT

# PynEntry
### A pythonic wrapper for pinentry

Written mostly to practice metaprogramming

credit to [mijikai](https://github.com/mijikai/pynentry) for a working example

***Requires pinentry to be installed***

#### convienience methods:

* to quickly and simply get a password/pin from a user:

`get_pin(description=None, prompt=None, timeout=0, display=None, global_grab=True)`

* to show and get a confirmation from a user:

`get_confirm(description=None, timeout=0, display=None, global_grab=True)`

* to show a message to a user:

`show_message(description=None, timeout=0, display=None, global_grab=True)`

#### PynEntry class
The above methods instance and configure a PynEntry instance wich can be called and configured manually
via attributes


the PynEntry class supports the following attributes:

* `description`: Sets the descriptive text to display
* `prompt`: Sets the text just before the passphrase entry (ex: "PASS:")
* `title`: Sets the window title
* `ok_text`: Sets the text shown in the "OK" button
* `cancel_text`: Sets the text shown in the "Cancel" button
* `error_text`: Sets the text in case of error before reprompt (Cleared after every `get_pin()` call)
* `tty_name`: Chose the tty to use (set automatically)
* `tty_type`: Change the tty type to use.
* `locale`: Sets the locale to use (set automatically to current os locale)

***NOTE: The PynEntry class uses the $PATH variable to find the pinentry executable, you can specify the location of the
executable manually when you initialize like so: `PynEntry(executable='/path/to/pinentry')`***

PynEntry is best used as a context manager to automatically kill the pinentry process when you are done.

#### Example:
```python
import pynentry
pynentry.show_message('Hello there!')

with pynentry.PynEntry() as p:
    p.description = 'Enter a password.\n Choose Wisely!'
    p.prompt = 'PASS>'
    try:
        passwd = p.get_pin()
    except pynentry.PinEntryCancelled:
        print('Cancelled?! Goodbye.')
        exit()
    p.ok_text = 'yep!'
    p.cancel_text = 'nope!'
    p.description = f'CAN YOU CONFIRM YOUR SUPER SECRET PASSWORD IS {passwd}?'
    if p.get_confirm():
            print(f'password {passwd} saved!')
    else:
            print(f'Too bad, so sad')
```