semvec/pypi-packages huggingface dataset:
HectareaLES 4.20.68.99.9
Hectarea Loop Encryption System
License: MIT
Keywords: Encryption,Dictionary,Hectarea,Secrets


# Hectarea Loop Encryption System



Encryption algorithm by Hectarea and Qrab & Nell, based on 16 function blocks that process and de-process individual bytes.

Each function block is randomly selected based on the (iv+(password[(nonce+index)%len(password)]))%(2**3), to guarentee a 
criptographically safe random output.

It accepts a byte array as input and another byte array with the same length as output.


## Installation

```bash
pip install HectareaLES  
```

## Basic Example
```python
from HectareaLES import LES

#Initialize the LES class
LES = LES()

#Parameters:

#Byte array to encrypt
secret_message = b'i know what the dog is doing'

#Any length password
password = b'random length password'

#Any length iv
iv = b'random length initial value'

#Any length nonce
nonce = b'some random nonce'


#Returns the encrypted byte array
EncryptedBytes = LES.encrypt(secret_message, password, iv, nonce)

print("\nEncrypted ByteArray: \n" + str(EncryptedBytes))

#Returns the original byte array
DecryptedBytes = LES.decrypt(EncryptedBytes, password, iv, nonce)

print("\nDecrypted ByteArray: \n" + str(DecryptedBytes))
```
korean-lunar-calendar 0.3.1
Korean Lunar Calendar
License: MIT
Keywords: calendar,korean,lunar

korean\_lunar\_calendar\_py
===========================

한국 양음력 변환

Overview
^^^^^^^^

Here is a library to convert Korean lunar-calendar to Gregorian
calendar.

Korean calendar and Chinese calendar is same lunar calendar but have
different date.

This follow the KARI(Korea Astronomy and Space Science Institute)

한국 양음력 변환 (한국천문연구원 기준) - 네트워크 연결 불필요

음력 변환은 1000년 01월 01일 부터 2050년 11월 18일까지 지원
양력 변환은 1000년 02월 13일 부터 2050년 12월 31일까지 지원

::

    Gregorian calendar (1000-02-13 ~ 2050-12-31) <--> Korean lunar-calendar (1000-01-01 ~ 2050-11-18)

Install
^^^^^^^

pip install korean\_lunar\_calendar

To use
^^^^^^

(0) import module

    .. code:: python

        from korean_lunar_calendar import KoreanLunarCalendar

(1) Korean Solar Date -> Korean Lunar Date (양력 -> 음력)

    .. code:: python

        calendar = KoreanLunarCalendar()
        # params : year(년), month(월), day(일)
        calendar.setSolarDate(2017, 6, 24)
        # Lunar Date (ISO Format)
        print(calendar.LunarIsoFormat())
        # Korean GapJa String
        print(calendar.getGapJaString())
        # Chinese GapJa String
        print(calendar.getChineseGapJaString())

::

    [Result]
    2017-05-01 Intercalation
    정유년 병오월 임오일 (윤월)
    丁酉年 丙午月 壬午日 (閏月)

(2) Korean Lunar Date -> Korean Solar Date (음력 -> 양력)

    .. code:: python

        # params : year(년), month(월), day(일), intercalation(윤달여부)
        calendar.setLunarDate(1956, 1, 21, False)
        # Solar Date (ISO Format)
        print(calendar.SolarIsoFormat())
        # Korean GapJa String
        print(calendar.getGapJaString())
        # Chinese GapJa String
        print(calendar.getChineseGapJaString())

::

    [Result]
    1956-03-03
    병신년 경인월 기사일
    丙申年 庚寅月 己巳日
scusage 0.0.1
analyze shortcut usage for i3wm
License: MIT
Keywords: scusage,i3wm

scusage
=====================================================
[![PyPI version](https://badge.fury.io/py/scusage.svg)](https://badge.fury.io/py/scusage)
[![CodeQL](https://github.com/tobi-wan-kenobi/scusage/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/tobi-wan-kenobi/scusage/actions/workflows/codeql-analysis.yml)
![License](https://img.shields.io/github/license/tobi-wan-kenobi/scusage)

`scusage` is a small tool to analyze your keyboard shortcut usage (hence the name -
**S**hort**C**ut **usage**) to help you find optimal keybindings.

Currently, it only supports the i3 window manager.

# Installation

```
$ pip install --user scusage
```

# Usage

`scusage` has no parameters, you simply run it, use your window manager, and
when you want to get the results, you terminate `scusage` using `Ctrl+C`.

```
$ scusage
# let scusage run while you go about your daily business
# when you are done, terminate the tool with Ctrl+C

shortcut                                                                          count
--------------------------------------------------------------------------------  -------  ------------------------------
Mod4+2: workspace "2: "                                                           7 (22%)  ==============================
Mod4+3: workspace "3: "                                                           7 (22%)  ==============================
Mod4+4: workspace "4: "                                                           5 (16%)  =====================
Mod4+5: workspace "5: "                                                           3 (9%)   ============
Mod4+r: exec "rofi -modi window,drun,ssh,combi -show combi"                       3 (9%)   ============
Mod4+1: workspace "1: "                                                           2 (6%)   ========
Mod4+s: mark swapee; focus right; swap container with mark swapee; unmark swapee  2 (6%)   ========
Mod4+8: workspace "8:  "                                                          1 (3%)   ====
Mod4+9: workspace "9: "                                                           1 (3%)   ====
Mod4+0: workspace "10: "                                                          1 (3%)   ====
```

The idea is that this tool helps you identify which shortcuts you use most often,
so that you can bind them to convenient and easy to reach key combinations.
jd-HTMLTestRunner 1.7.0
Python3 Unittest Runner -- HTMLTestRunner
License: MIT
Requires Python: >=3.7

# jd-HTMLTestRunner

jd-HTMLTestRunner for Python3 unittest 

[![PyPI version](https://badge.fury.io/py/jd-HTMLTestRunner.svg)](https://pypi.python.org/pypi/jd-HTMLTestRunner)
[![PyPI version](https://img.shields.io/pypi/pyversions/jd-HTMLTestRunner)](https://pypi.python.org/pypi/jd-HTMLTestRunner)
[![PyPI version](https://img.shields.io/pypi/dm/jd-HTMLTestRunner)](https://pypi.python.org/pypi/jd-HTMLTestRunner)


## 安装

```
pip install jd-HTMLTestRunner
```

## 示例

```
from jd_HTMLTestRunner import HTMLTestRunner

suite = unittest.TestLoader().discover(".", "test_*.py")
file = open(r"test01.html", "wb")
runner = HTMLTestRunner(stream=file, title="我的测试报告")
runner.run(suite)
file.close()
```


## 模块内方法说明

| 函数、对象名称            | 类型    | 说明                          |
|---------------------------|---------|-------------------------------|
| HTMLTestRunner            | 对象    | 主测试执行对象   |
eventspy 1.0.0
Events in Python
License: MIT
Keywords: events,event,pyevent,eventpy,eventspy

# EventsPy
Events in Python

Example:
```python
from threading import Thread
import eventspy

events = eventspy.EventsHandler()

@events.on('message')
def messageEvent(data):
   print(f"{data['name']}> {data['message']}")

@events.on("quit")
def quitEvent(data):
   print(f"{data['name']}> quit!")
   exit()

def terminal():
   while True:
      cmd = input("> ")
      if cmd == "quit":
         events.send("quit", {"name": "Nawaf"})
      else:
         events.send("message", {"name":"Nawaf", "message": cmd})

thread = Thread(target=terminal, daemon=True)
thread.start()

events.listen()
```
unwind 0.4.0
A simple solution to analysis and extract information from traceback.
License: MIT
Requires Python: >=3.8
Keywords: traceback,exception,crash-report

# Unwind

A simple solution to analysis and extract information from traceback

## install

```bash
pip install unwind
```

## usage

```python
from unwind import Report

with Report() as report:
    a = 1
    b = 2
    c = 'a'
    d = 1 + c

print(report.errors[0])
print(report.reports[0])

'''
(<class 'TypeError'>, TypeError("unsupported operand type(s) for +: 'int' and 'str'"), <traceback object at xxxxx>)
---------report--------
info = _TraceContext(file='xxxxxx', line=7, name='<module>', code='d = 1 + c', locals={...})
flag = operate
args = {'c': 'a'}
---------end------
'''
```

or

```python
from unwind import get_report

try:
    a = 1
    b = 2
    c = 'a'
    d = 1 + c
except Exception as e:
    print(get_report(e))

```
async-newtel 0.0.1
New-Tel simple async client based on httpx.
License: MIT
Requires Python: >=3.6,<4.0
Keywords: newtel,new-tel,utilities,async

# Async-NewTel

New-Tel simple async client based on httpx.

# Installation

```bash
pip install async-newtel
```

# Usage

```python
import async_newtel
import os

API_KEY = os.environ.get('API_KEY')
SIGNING_KEY = os.environ.get('SIGNING_KEY')

number = '+1234567890'
code = '1234'
# Send email with context manager

async with async_newtel.AsyncClient(
    api_key=API_KEY,
    signing_key=SIGNING_KEY
) as client:
    response = await client.call(number, code)

# Send email without context manager

client = simple_sendgrid.AsyncClient(api_key=API_KEY, signing_key=SIGNING_KEY)
await client.open()
response = await client.call(number, code)
await client.close()

```