semvec/pypi-packages huggingface dataset:
comto-core 2.0.0
Набор полезных функций для повседневной работы и уменьшения размера кода
Requires Python: >=3.8

# Core Commercito

Набор полезных функций для повседневной работы, которые сократят размер вашего кода.  
Их удобно использовать совместно с пакетом "[comto-dadata](https://pypi.org/project/comto-dadata/ "Пакет для работы с сервисом dadata.ru")".

## file.py
* Отсортировать csv-файл по определенной колонке
* Записать одну строку в csv-файл
* Записать несколько строк в csv-файл

## mix.py
* Вычесть из первого списка элементы второго списка
* Найти элементы присутствующие в обоих списках

## path.py
* Получить все файлы из директории с полными путями (рекурсивно или нет)
* Получить путь к директории относительно текущей
* Получить путь к текущей директории


## regexp.py
* Очистить строку от всех html-тегов
* Получить все символы из текста (кириллица или латиница)
* Получить все цифры из текста


## time.py
* Получить порядковый номер дня недели
* Получить UNIX-метку
* Получить текущие дату и время
* Дата и время в русском формате
* Дата и время в английском формате
ziproto 1.0
Protocol Buffer used to serialize and compress data
Requires Python: >=3.6.0


# ZiProto

ZiProto is used to serialize data, ZiProto is designed with the intention to be
used for transferring data instead of using something like JSON which can use
up more bandwidth when you don't intend to have the data shown to the public
or end-user

## Setup
```bash
python setup.py install
```

## Usage

To encode data, this can be done simply
```python
>> import ziproto
>> ziproto.encode({"foo": "bar", "fruits": ['apple', 'banana']})
bytearray(b'\x82\xa6fruits\x92\xa5apple\xa6banana\xa3foo\xa3bar')
```

The same can be said when it comes to decoding
```python
>> import ziproto
>> Data = ziproto.encode({"foo": "bar", "fruits": ['apple', 'banana']})
>> ziproto.decode(Data)
{'foo': 'bar', 'fruits': ['apple', 'banana']}
```

To determine what type of variable you are dealing with, you could use the decoder
```python
>> import ziproto
>> from ziproto.ZiProtoDecoder import Decoder

>> Data = ziproto.encode({"foo": "bar", "fruits": ['apple', 'banana']})
>> SuperDecoder = Decoder(Data)
>> print(SuperDecoder.get_type())
ValueType.MAP
```

---

## License
Copyright *2018 Zi Xing Narrakas*

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "**AS IS**" **BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND**, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
pypefilter 0.0.5
PyPEfilter filters out non-native Portable Executable
Requires Python: >=3.6

## PyPEfilter

```
$ ./pypefilter.py --help
usage: pypefilter.py [-h] -s SRC [-d DST] [--rename] [--delete] [-v | -vm]

PyPEfilter filters out non-native Portable Executable files

optional arguments:
  -h, --help         show this help message and exit
  -s SRC, --src SRC  Source directory
  -d DST, --dst DST  Destination directory
  --rename           Rename matching files with their sha256 hash
  --delete           Delete non-matching files
  -v, --verbose      Display messages
  -vm, --vmagic      Display messages and magic of non-matching files
```

PyPEfilter filters out non-native (DLLs, .Net, Installer, ...) Portable Executable files from `--src` directory.

If `--dst` directory is provided, it copies all the matching PE files from `--src` to `--dst`, and renames the files in the destination directory with their sha256 hash.

Specifying:
*  `--rename`: it renames the matching PE files in `--src` with their sha256 hash
*  `--delete`: it deletes the non-matching PE files from `--src`


### Disclaimer
This script is based on [python-magic](https://pypi.org/project/python-magic/), a Python interface to the libmagic file type identification library.
Therefore, for example, it does not identify all types of installers.
vpos 1.0
Facilitates the intereaction with Vpos API
Keywords: nextbss,python,vpos,point of sales,emis

# vPOS Python

![package](https://github.com/nextbss/vpos-python/workflows/package/badge.svg?branch=main)
[![](https://img.shields.io/badge/nextbss-opensource-blue.svg)](https://www.nextbss.co.ao)

This python package allows you to interact with the vPOS API

## Installation

```python
pip install vpos
```

## Configuration
| Variable | Description | Required |
| --- | --- | --- |
| `GPO_POS_ID` | The Point of Sale ID provided by EMIS | true |
| `GPO_SUPERVISOR_CARD` | The Supervisor card ID provided by EMIS | true |
| `MERCHANT_VPOS_TOKEN` | The API token provided by vPOS | true |
| `PAYMENT_CALLBACK_URL` | The URL that will handle payment notifications | false |
| `REFUND_CALLBACK_URL` | The URL that will handle refund notifications | false |
| `VPOS_ENVIRONMENT` | The vPOS environment, leave empty for `sandbox` mode and use `"prd"` for `production`.  | false |


Don't have this information? [Talk to us](suporte@vpos.ao)

## Use

### Get all transactions
This method retrieves all transactions

```python
import vpos
transactions = vpos.get_transactions()
```

### Get a specific Transaction
Retrieves a transaction given a valid transaction ID
```python
import vpos
transaction = vpos.get_transaction("1kTFGhJH8i58uD9MdJpMjWnoE")
```

### New Payment
```python
import vpos
transactions = vpos.new_payment("900111222", "123.45")
```
| Argument | Description | Type |
| --- | --- | --- |
| `mobile` | The mobile number of the client who will pay | `string`
| `amount` | The amount the client should pay, eg. "259.99", "259,000.00" | `string`


### Request Refund
```python
import vpos
transaction = vpos.new_refund("1jHbXEbRTIbbwaoJ6w06nLcRG7X")
```

### Poll Transaction Status
Poll the status of a transaction given a valid `request_id`. 

Note: The `request_id` in this context is essentially the `transaction_id` of an existing request. 

```python
import vpos
transaction = vpos.get_request("1jHbXEbRTIbbwaoJ6w06nLcRG7X")
```

| Argument | Description | Type |
| --- | --- | --- |
| `request_id` | The ID of transaction you wish to poll | `string`


### Have any doubts?
In case of any doubts, bugs, or the like, please leave an issue. We would love to help.

License
----------------

The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).