semvec/pypi-packages huggingface dataset:
keep-dict-sorted 1.0
An ordered dict with sorting capabilities.
Requires Python: >=3.9

# Keep Dict Sorted

This package contains the ODict class, which is an ordered dict with the
capability to keep the items sorted not only in insertion order, but in any
order that can be achieved by sorting. Typically this can be sorted on the
keys or on the values, but a general sort key function is also possible.

## Documentation

Just a small example, with items sorted on the values:
```python
from keep_dict_sorted import ODict
D = ODict({'a':0, 'c':1, 'b':3, 'd':2}, sortkey='value')
print(D)  # {'a': 0, 'c': 1, 'd': 2, 'b': 3}
# now change a value:
D['c'] = 4
print(D)  # {'a': 0, 'd': 2, 'b': 3, 'c': 4}
```
For more: see the docstring of the keep_dict_sorted module and the ODict class.

## History

Back in the old times the [pyFormex project](https:pyformex.org) had its
own ordered dict with the capability to sort the items on request. After
Python's default dict became ordered, it was dropped from pyFormex as its
applications could easily be got with a plane dict and sorting comprehensions.
Triggered by a recent discussion on
[discuss.python.org](https://discuss.python.org/t/sorting-ordered-dicts/25336)
I grabbed the old source, updated it to Python3, added some more functionality
(keeping the items sorted at all times, instead of sorting them on request),
and threw the whole thing on PyPi. Enjoy.

## License

  pyFormex is licensed under the
  [GNU General Public License v3](https://www.gnu.org/licenses/gpl-3.0.html)
  or later (GPLv3+) and so is this package.
DAHU12 0.0.0.0.1
Package de calcul formel (pour l'instant ;=) )
Requires Python: >=3.7

# DAHU.py
## _Package scientifique python_
***
## Auteurs : 
- LOUVAT SEGURA Anthony
- CHEMINOT Virgile

## Remerciements
Nous souhaitons dans un premier temps remercier tous particulièrement notre professeur de mathématiques : Bernard Parisse, sans qui le projet ne serait pas là où il en est actuellement (faites un tour sur sa page personnel de l'université joseph fourrier).
Il a nous permis d'utiliser sa création : le CAS Giac, sur qui est basé toute la gestion d'expression algébrique du package.

DAHU est une librairie python destiné aux étudiants et scientifiques, qui contient beaucoup de fonction leurs étant utile.

Installation provisoire : https://pypi.org/project/DAHU12/
rsatool 0.1.8
Module for fast calculating large primes, and RSA encryption and decryption of data of any size

eng:
This module implements encryption using the RSA algorithm, as well as indirectly fast and reliable calculation of prime numbers
To generate keys, use the function RSA.get_bit_keys(number of bits to calculate the desired key)
```python
import rsatool
e, d, n = rsatool.RSA_tool.RSA.get_bit_keys(1024)
```
To encrypt information, use the block encryption function, you can quickly encrypt information of any size
```python
import rsatool
e, d, n = rsatool.RSA_tool.RSA.get_bit_keys(1024)
m = 'hello world'
print(n)
c = rsatool.RSA_tool.RSA.get_bit_keys(1024)
print(c)
```
To decrypt the message, use the block decryption function
```python
import rsatool
e, d, n = rsatool.RSA_tool.RSA.get_bit_keys(1024)
m = 'hello world'
print(n)
c =  rsatool.RSA_tool.RSA.block_encrypt(m, e, n)
print(c)
m =  rsatool.RSA_tool.RSA.block_decrypt(c, d, n)
print(m)
```
For an example of working with the module and testing it, refer to the main.py file

rus:
Данный модуль реализует шифрование по алгоритму RSA, а так же косвенно быстрое и надёжное вычисление простых чисел
Для генерации ключей воспользуйтесь функцией RSA.get_bit_keys(число бит для вычисления желаемого ключа)
```python
import rsatool
e, d, n =  rsatool.RSA_tool.RSA.get_bit_keys(256)
```
Для шифрования информации используйте функцию блочного шифрования, Вы можете достаточно быстро шифровать информацию любого объёма
```python
import rsatool
e, d, n = rsatool.RSA.get_bit_keys(256)
m = 'hello world'
print(n)
c = rsatool.RSA.block_encrypt(m, e, n)
print(c)
```
Для расшифрования сообщения используйте фунцию блочного расшифрования
```python
import rsatool
e, d, n = rsatool.RSA.get_bit_keys(256)
m = 'hello world'
print(n)
c = rsatool.RSA.block_encrypt(m, e, n)
print(c)
m = rsatool.RSA.block_decrypt(c, d, n)
print(m)
```
Для примера работы с модулем и его тестирования обратитесь к файлу main.py