semvec/pypi-packages huggingface dataset:
python-perl-storable 0.1.0
python_perl_storable - распаковывает структуру из формата perl-storable
License: MIT
Requires Python: >=3.6

# python_perl_storable

# NAME

python_perl_storable - распаковывает структуру из формата perl-storable

# VERSION

0.1.0

# DESCRIPTION

```python
from python_perl_storable import freeze, thaw

class A:
    def getX(self):
        return self.x

storable_binary_string = freeze({'x': A(x=6), 's': "Здравствуй, Мир!"})

data = thaw(
	storable_binary_string, 
	classes={'A::A': A}, 
	iconv=lambda s: s.decode('windows-1251')
)

print(data) # -> {'x': <__main__.A instance at 0x7f7f532e1050>, 's': "Здравствуй, Мир!"}

print(data['x'].getX()) # -> 6

print(data['s'])        # -> Здравствуй, Мир!
```

# SYNOPSIS

В языке perl есть свой формат бинарных данных для упаковки любых структур: хешей, списков, объектов, регулярок, скаляров, файловых дескрипторов, ссылок, глобов и т.п. Он реализуется модулем https://metacpan.org/pod/Storable.

Данный формат довольно популярен и запакованные в бинарную строку данные различных проектов на perl хранятся во внешних хранилищах: mysql, memcached, tarantool и т.д.

Данный змеиный модуль предназначен для распаковки данных, полученных из таких хранилищ, в структуры python и для упаковки данных питона, чтобы поместить их в хранилище.  

# FUNCTIONS

## thaw

### ARGUMENTS

- storable - бинарная строка
- classes - словарь с классами. Необязательный параметр
- iconv - функция для конвертации строк не в utf8. Необязательный параметр

## freeze

### ARGUMENTS

- data - данные питона: строка, число, словарь, список, объект и т.д.
- magic - булево значение. Необязательно. Добавляет к выводу магическое число 'pst0'

### RETURNS

Бинарная строка с данными в формате Perl Storable

# SCRIPT

```sh
# Заморозить-раморозить:
$ echo '[123, "Хай!"]' | pypls freeze | pypls thaw

# Передавать замороженные данные в бинарном виде:
$ echo '[123, "Хай!"]' | pypls freeze -b | pypls thaw -b

# Передавать код в параметре:
$ pypls freeze --data '[123, "Хай!"]' | pypls thaw

# Добавить магическое число и обесцветить замероженную строку:
$ pypls freeze -m -s --data '[123, "Хай!"]' | pypls thaw

# Перекодировать строки (bytes останутся как есть):
$ pypls freeze --data '[123, "Хай!"]' -i cp1251 | pypls thaw -i cp1251

```

# INSTALL

```sh
$ pip install python-perl-storable
```

# REQUIREMENTS

* data-printer
* argparse

# LICENSE

Copyright (C) Yaroslav O. Kosmina.

This library is free software; you can redistribute it and/or modify
it under the same terms as Python itself.

# AUTHOR

Yaroslav O. Kosmina <darviarush@mail.ru>

# LICENSE

MIT License

Copyright (c) 2020 Yaroslav O. Kosmina
brew-versions 0.3.3
Manage different versions of homebrew packages
License: MIT
Requires Python: >=3.6, <4
Keywords: brew,homebrew,homebrew version,development,macos,linux

# Brew Versions (`brewv`)
[![PyPI version](https://badge.fury.io/py/brew-versions.svg)](https://badge.fury.io/py/brew-versions)
![Python versions](https://img.shields.io/pypi/pyversions/brew-versions.svg?style=flat-square&label=Python%20Versions)

Manage multiple versions of your Homebrew packages with ease!
Homebrew makes this difficult as a design decision, but sometimes old packages
need to be installed and we need a way to do so easily.

## Installation
With [pipx](https://github.com/pipxproject/pipx)
```bash
pipx install brew-versions
```
Or just with pip:
```bash
python3 -m pip install --user brew-versions
```

## Usage

#### Switch to a specific version:
```bash
$ brewv switch wget 1.21
[brewv]: Switching wget to version 1.21
[brewv]: Not in cache: finding bottle to download
[brewv]: GET https://linuxbrew.bintray.com/bottles/wget-1.21.x86_64_linux.bottle.tar.gz
[brewv]: Bottle successfully downloaded, but cannot verify SHA256
[brewv]: Pinning wget
[brewv]: Successfully switched to wget 1.21
```

#### Installing from taps:
```bash
$ brewv switch jonchang/biology/bucky 1.4.4
[brewv]: Tapping jonchang/biology
[brewv]: Switching bucky to version 1.4.4
[brewv]: Not in cache: finding bottle to download
[brewv]: GET https://linuxbrew.bintray.com/bottles/bucky-1.4.4.x86_64_linux.bottle.tar.gz
[brewv]: No bottle was found for bucky 1.4.4
[brewv]: Searching for version in git directory, this may take a while...
[brewv]: Found a version in commit: eee76a60fb5d7c6b619d736b50ee10fe42a9c73c
[brewv]: Found bottle in tap config
[brewv]: GET https://dl.bintray.com/jonchang/bottles-biology/bucky-1.4.4.x86_64_linux.bottle.tar.gz
[brewv]: SHA256 verified successfully
[brewv]: Pinning bucky
[brewv]: Successfully switched to jonchang/biology/bucky 1.4.4
```

When no bottle is found for taps it will proceed with searching the
local tap repository for the correct version and installing from the bottle
defined in the formula if it exists, otherwise from source.

This is very slow for the main homebrew repository so this behaviour is disabled
when a bottle for a homebrew-core package cannot be found. You can supply
the option `brewv switch --slow ...`  to perform this search.

### Warnings
Proper SHA256 verification is not done when downloading bottles from the
main bottle repository. This is because to get the expected SHAs would mean searching
the huge homebrew-core repository.

While homebrew bottles exist for most operating
systems, if the bottle is not found then parsing old formulas fails quite often
since Homebrew updates their code frequently.
arib21 1.0.0
Get info about me! hehe
License: MIT

# arib21

##### Get info about me! hehe

## How to use:

First of all, use the command below in the command line to download the package.
```
pip install arib21
```

Implementation
```python
import arib21

print(arib21.about)
print(arib21.friends)
```
##### Note: More data is coming soon. So, stay tuned!
###### Developed by Arib Muhtasim 2021

Change Log
==========

1.0.0 (20/04/2021)
-------------------
- First Release