semvec/pypi-packages huggingface dataset:
mygalaxy 0.1.2
A small galaxy to learn poetry
Requires Python: >=3.9,<3.11

# mygalaxy 

A small galaxy to learn poetry. 

## How to install 

`pip install mygalaxy`

## How to use

### Create your planet

    from mygalaxy.planet import Planet
    earth = Planet(name='earth', radius=6371000, gravity=9.807, system='solar')
    print(earth.gravity)

### Make your planet spin 

`earth.spin()`

### Make your planet orbit

`earth.orbit()`

### Learn the shape of your planet

`earth.commons()`


### Compute the mass of your planet

`earth.mass()`


### Compute the volume of your planet 

`earth.volume()`

You may also use the mass and volume compute functions separately by doing: 

    from mygalaxy.calc import planet_mass, planet_vol
    r = 6371000
    g = 9.807
    print(planet_mass(gravity=g, radius=r))
    print(planet_vol(radius=r))

### Related URLs
* https://python-poetry.org/
* https://realpython.com/dependency-management-python-poetry/
* https://www.youtube.com/watch?v=f26nAmfJggw
* https://realpython.com/pypi-publish-python-package/
* https://www.youtube.com/watch?v=sugvnHA7ElY&t=242s
* https://stackoverflow.com/a/70027834/7762646
string2markup 0.0.1
Made to format strings for kivy/kivymd (MIT)
Keywords: markup,markdown,kivy,kivymd


<p align="center"><a href="https://twitter.com/Aprender_alemao"><img src="https://cdn.jsdelivr.net/gh/dmhendricks/signature-social-icons/icons/round-flat-filled/50px/twitter.png" alt="Twitter" title="Twitter" width="50"/></a><a href="https://www.facebook.com/estudaralemao/"><img src="https://cdn.jsdelivr.net/gh/dmhendricks/signature-social-icons/icons/round-flat-filled/50px/facebook.png" alt="Facebook" title="Facebook" width="50"/></a><a href="https://www.instagram.com/estudaralemao/"><img src="https://cdn.jsdelivr.net/gh/dmhendricks/signature-social-icons/icons/round-flat-filled/50px/instagram.png" alt="Instagram" title="Instagram" width="50"/></a><a href="https://www.youtube.com/c/wwwqueroestudaralemaocombr"><img src="https://cdn.jsdelivr.net/gh/dmhendricks/signature-social-icons/icons/round-flat-filled/50px/youtube.png" alt="YouTube" title="YouTube" width="50"/></a><a href="https://api.whatsapp.com/send?phone=5511989782756&text=I%20want%20to%20know%20..."><img src="https://cdn.jsdelivr.net/gh/dmhendricks/signature-social-icons/icons/round-flat-filled/50px/whatsapp.png" alt="WhatsApp" title="WhatsApp" width="50"/></a><a href="https://www.queroestudaralemao.com.br"><img src="https://cdn.jsdelivr.net/gh/dmhendricks/signature-social-icons/icons/round-flat-filled/50px/website.png" alt="WWW" title="WWW" width="50"/></a><a href="https://br.pinterest.com/chucrutehans/"><img src="https://cdn.jsdelivr.net/gh/dmhendricks/signature-social-icons/icons/round-flat-filled/50px/pinterest.png" alt="Pinterest" title="Pinterest" width="50"/></a><a href="mailto:aulasparticularesdealemaosp@gmail.com?subject=I%20want%20to%20know%20...%20"><img src="https://cdn.jsdelivr.net/gh/dmhendricks/signature-social-icons/icons/round-flat-filled/50px/mail.png" alt="E-Mail" title="E-Mail" width="50"/>
</a>


<p align="center">
<a href=https://github.com/hansalemaos/string2markup><img src="https://img.shields.io/badge/author-hansalemaos-black"/></a>
<a href=https://www.queroestudaralemao.com.br><img src="https://img.shields.io/badge/from-queroestudaralemao.com.br-darkgreen"/></a>
<a href=#><img src="https://img.shields.io/badge/for-Windows-black"/></a>
<a href=https://codeload.github.com/liangjingkanji/DrakeTyporaTheme/zip/refs/heads/master><img src="https://img.shields.io/badge/Theme-Drake-black"/></a>
<a href=https://github.com/dmhendricks/signature-social-icons><img src="https://img.shields.io/badge/Social-Icons-darkgreen"/></a>
</p><br><!--  -->


# string2markup
Made to format strings for kivy/kivymd (MIT)
<br>Just download use 
```
pip install string2markup
```

```
from string2markup import S2M
print(S2M('haddd').b.u.color((255,255,255,255)))
print(S2M('haddd').b.u.color((255,255,255)))
print(S2M('haddd').b.u.color((1,1,1)))
print(S2M('haddd').b.u.color('#ffffff').sub.s.size(12))

output:
[color=#ffffff][u][b]haddd[/b][/u][/color]
[color=#ffffff][u][b]haddd[/b][/u][/color]
[color=#ffffff][u][b]haddd[/b][/u][/color]
[size=12][s][sub][color=#ffffff][u][b]haddd[/b][/u][/color][/sub][/s][/size]
```
logshot 0.0.5
Simplified log tool that allows an easy manageable global logger
Requires Python: >=3.7

# Log-Shot

A simplified log tool with some custom features that allows to manage loggers across multiple python files, with a root logger that is easy to enable or disable whenever it is necessary from any file.

### Installation
```
pip install logshot
```

### Usage Example
```
# -- Global logger config
title = "log-file"
logs_dir = 'logs'
if not os.path.exists(logs_dir):
    os.mkdir(logs_dir)
logging.config_log_capture(logs_dir, logfile_title=title)
logging.root_level = logging.DEBUG;
logging.start_log_capture()
# -- Logger
logger = logging.Logger(module_name=__name__)
logger.level = logging.DEBUG
...
logger.info("Opening example path...")
try:
    with open('C:\\Users\\example\\of\\logshot\\package', 'r') as file:
        ...
except Exception as err:
    logger.error(err); exit(1)
```

### File Output
```
2022-01-24 00:59:32.138305
[INFO] __main__: Opening example path...

2022-01-24 00:59:40.446509
[ERROR] __main__: [WinError 3] The system cannot find the path specified: 'C:\\Users\\example\\of\\logshot\\package'
```
crypt-utilities 0.0.7
An easy and simplified cryptographic utility package (fernet, RSA, hashes...)
Requires Python: >=3.7

# Cryptographic utility package

An easy and simplified cryptographic utility package (fernet, RSA, hashes...) with some
common encryption stuff already programmed (very simple and with common secure parameters by default). 
It uses the 'cryptography' module

### Installation
```
pip install crypt-utilities
```
### Modules 

#### Symmetric
```
def encrypt ...
def encrypt_file ...
def decrypt_file ...
```

#### Hashes
```
def derive(data:bytes, salt:bytes, length:int=32, iterations=400000) -> bytes:...
```

#### Asymmetric
```
def rsa_encrypt (...
def generate_rsa_key_pairs (...
def generate_private_key (...
def serialize_pem_public_key (...
def load_pem_private_key (...
```
### Usage Example

```
# Encrypt with RSA (asymmetric)
# -- John
secret_msg = "Very secret msg to send"
public_key = load_pem_public_key(file_path="./public_key")
encrypted:bytes = rsa_encrypt(secret_msg.encode(), public_key)
...
# Decrypt with RSA (asymmetric)
# -- Michael
private_key_path = str(input(" -> Introduce your private key file path: "))
password = str(input(" -> Introduce the private key password (blank if None was used): "))
if password == "":
    password = None
try:
    private_key = load_pem_private_key(file_path=private_key_path, password=password)
except :
    print("[!] Wrong Password"); exit(1)
secret_msg_sent_by_john = rsa_decrypt(encrypted, private_key).decode()
```
readcsvturbo 0.0.6
Improved method for reading the first/last/specific line from csv into a DataFrame
Keywords: python,pandas,readcsv,readfirstlinecsv,readlastlinecsv,readspecificlinecsv

Improved method for reading the first/last/specific line from csv into a DataFrame

Ever deal with multiple huge csv files and and the panads `read_csv/skiprows` method is slowing you down? You are not alone.

read-csv-turbo is an improved method of reading the first and last lines using unix `head` and `tail` commands to get the data you want in a dataframe as fast as possible. I may include Windows support in the future if requested.

Reading a large csv once is "fine" but often I find myself looping through many files and this process is painfully slow which is why StackOverflow suggestions didn't cut it. There may be a newer/smarter way of approaching this but this method should be as fast as you could get. 

At the moment the use case of this is quite limited as it just provides a fast way to read the `first`, `last` or `n` row of a csv into a dataframe

github: https://github.com/donjor/read-csv-turbo