semvec/pypi-packages huggingface dataset:
termi 1.0.1
A package containing multiple different functions I like to use.
Requires Python: >=3.6

# termi

A collection of multiple different functions that I like to use.

# Features

### Animated printing to the console.

#### Parameters

- text | Text to be printed to the console.
- pause | The pause between the output of each individual character.
 
``` python
from termi import console

# NOTE: console.printf does not print a new line character after text.
console.printf("This text is animated!")
```

### Clearing the console.
 
``` python
from termi import console

console.printf("Hi.")

console.clear()

console.printf("Bye.")
```

### Text style.

You can change the foreground, background and style (italic etc.) of text.

``` python
from termi import console

console.printf(f"{console.fore.Bright_Red}This is bright red text.\n")

console.printf(f"{console.back.White}This is bright red text with a white background.\n")

console.printf(f"{console.style.Underlined}This is bright red text with a white background which is underlined.")

# Remember to do console.style.RESET_ALL to reset all formatting.
```
catty 0.1.1
Concatenative programming integrated to Python
Requires Python: >=3.7

# catty -- Concatenative programming integrated in Python

[Concatenative programming](https://concatenative.org/wiki/view/Front%20Page)
is a method and coding style that emphasizes functional composition through
implicit parameter passing and postfix notation. It is often understood as
*stack programming*, mimicking the constraints of stack machines. While it
carries some hipster cred, it is popular in development circles involving
dedicated hardware. Its most popular incarnation is the
[FORTH](https://concatenative.org/wiki/view/Forth) language; the
[Factor](https://factorcode.org/) language and platform provides a more modern
programming system over its principles.

This project is an attempt at integrating a concatenative style and approach
to the Python language and software ecosystem. Its present incarnation is
somewhat clumsy as it parasites the Python syntax: a catty program is valid
Python code. The catty semantics also attempt to leverage the Python built-ins
and library as much as possible. Here is a taste:


```python
from operator import add, mul
from catty import reduce
from catty.words import dup


result = reduce([5, 6, dup, mul, add])
print(result)  # Yields [41]
```

So this early take yields the answer to life, the universe and everything,
but it's off by one. Should be fixed in next version.

The interpretation is performed in a Python code loop, so speed cannot be
expected. However, the interpreter in its current form optimizes tail calls,
enabling arbitrary recursive applications:

```python
from operator import mul
from catty import reduce
from catty.words import dup, tuck, fork, apply, Word

factorial_ = Word(  # prod, n -- prod, n-1
    dup, 0, eq,
    [],
    [dup, tuck, mul, swap, 1, sub, apply.factorial_],
    fork
)
factorial = Word(  # n -- n!
    1, swap, factorial_
)
print(reduce([5, factorial]))  # Yields [120]
```

This project is meant for incremental exploration of interactions between
concatenative and applicative programming styles. It will not shy away from
changing completely as it progresses. Current plans involve digging further
into tapping into namespace control through function definitions, replacing
the interpretation loop with Python bytecode generation, and further
strengthening integration so that concatenative and regular Python code can
live side by side.
MathSquare 0.0.7
A package for easy work with geometric formulas

# MathSquare
MathSquare - python library for work with geometric formulas easy.
For example, you can solve a problem with the Pythagorean theorem in one line of code using Mathsquare, while on a "naked" python it may take 5-6 lines of code.

# opportunities
Area calculation

Perimetr calculation

Calculation of the area of a triangle by Heron's theorem

calculation of radius and diameter

calculation of the cathet/hypotenuse according to the Pythagorean theorem

Calculation of cosine, sine, tangent of agle, using two sides.

# What new?

rewritten code of library

adding support for tetrahedron.

# Future
Add support for more geometric shapes

# docs
GitHub wiki page with docs - https://github.com/Zedikon/MathSquare/wiki/MathSquare-wiki
exceptlog-pkg-yrom1 0.0.5
exception logging decorator
Requires Python: >=3.6

# exception-logging-decorator
The following function:
```py
from typing import NoReturn

from src.exceptlog.main import exception_logger

log = exception_logger("./log.log", "US/Eastern")


@log
def no_return() -> NoReturn:
    """Test function."""
    raise Exception("DO NOT PASS GO DO NOT COLLECT $200.")


if __name__ == "__main__":
    try:
        no_return()
    except:
        pass
```
Logs the following exception in `log.log`.
```
ERROR:root:no_return
  raised Exception: DO NOT PASS GO DO NOT COLLECT $200.
    called with args = (), kwargs = {}
    at 2022-01-03 22:28:08.199492-05:00
Traceback (most recent call last):
  File "/home/ryan/exception-logging-decorator/src/exceptlog/main.py", line 65, in wrapper
    output = function(*args, **kwargs)
  File "/home/ryan/exception-logging-decorator/./tests/test.py", line 21, in no_return
    raise Exception("DO NOT PASS GO DO NOT COLLECT $200.")
Exception: DO NOT PASS GO DO NOT COLLECT $200.
```
exceptlog 0.0.4
exception logging decorator
Requires Python: >=3.6

# exception-logging-decorator
The following function:
```py
from typing import NoReturn

from src.exceptlog.main import exception_logger

log = exception_logger("./log.log", "US/Eastern")


@log
def no_return() -> NoReturn:
    """Test function."""
    raise Exception("DO NOT PASS GO DO NOT COLLECT $200.")


if __name__ == "__main__":
    try:
        no_return()
    except:
        pass
```
Logs the following exception in `log.log`.
```
ERROR:root:no_return
  raised Exception: DO NOT PASS GO DO NOT COLLECT $200.
    called with args = (), kwargs = {}
    at 2022-01-03 22:28:08.199492-05:00
Traceback (most recent call last):
  File "/home/ryan/exception-logging-decorator/src/exceptlog/main.py", line 65, in wrapper
    output = function(*args, **kwargs)
  File "/home/ryan/exception-logging-decorator/./tests/test.py", line 21, in no_return
    raise Exception("DO NOT PASS GO DO NOT COLLECT $200.")
Exception: DO NOT PASS GO DO NOT COLLECT $200.
```
OKApplePAI 1.0.0
OK AppStore Connect API
Requires Python: ~=3.9
Keywords: ios ok apple appstore connect api

# OK App Store Connect API

Apple官方API文档：<https://developer.apple.com/documentation/appstoreconnectapi>

同时，也借鉴了 [appstoreconnect库](https://pypi.org/project/appstoreconnect/) 的设计；

## 功能

profile，即mobileprovision文件；  
device，即设备（iPhone、iPad等），包括设备的name、UDID信息；

* 获取profile列表；
* 删除一个profile；
* 创建一个profile；
* 获取bundleId列表；
* 获取Certificate证书信息列表；
* 获取device列表；
* 注册一个新device

# 使用

```python

from okappleapi.apple_api_agent import APIAgent, TokenManager
from okappleapi.models import *
from pathlib import Path

# key参数 支持key文件内容，或者key文件路径（即*.p8文件路径）
token_manager = TokenManager(issuer_id='xxx', key_id='xxx', key='xxx')
# TokenManager.from_json(key_path)  # 读取配置文件来创建对象

agent = APIAgent(token_manager)

# 获取certificates列表
cer_list = agent.list_certificates()
for tmp_cer in cer_list:
    print(f'{tmp_cer.id}, {tmp_cer.attributes.__dict__}')

# 获取bundle_id列表
bundle_id_list = agent.list_bundle_id()
for tmp_id in bundle_id_list:
    print(f'{tmp_id.id}, {tmp_id.attributes}')

# 获取device设备列表
device_list = agent.list_devices()
for tmp_device in device_list:
    print(tmp_device.__dict__)

# 获取profile列表
profile_list = agent.list_profiles()
for index, tmp_profile in enumerate(profile_list, start=1):
    print(f"profile: {index}. {tmp_profile.id}, {tmp_profile.attributes.name}")

# 创建profile
attrs = ProfileCreateReqAttrs('test_hello')
result = agent.create_a_profile(attrs, bundle_id=bundle_id_list[0], devices=device_list, certificates=cer_list)
print(f'create profile: {result.id}, {result.attributes.name}')

# 删除刚创建的profile
agent.delete_a_profile(result.id)

# 添加一个iOS新设备
device_name = 'xxx'
device_udid = 'xxx'
result = agent.register_a_device(DeviceCreateReqAttrs(device_name, device_udid))
print(result)


# 更新一个profile
from okappleapi.ok_agent import OKProfileManager

profile_name = 'test_hello'
bundle_id_str = 'com.oksw.hellotest'
ok_agent = OKProfileManager(token_manager)
ok_agent.update_profile(profile_name, bundle_id_str=bundle_id_str)


```
newdispanderfixed 0.1.5
A fork of Discord Message URL Expander for d.py 2.0.0a/pycord

[![PyPI - Downloads](https://img.shields.io/pypi/dm/dispanderfixed)](https://pypi.org/project/dispanderfixed)
[![PyPI](https://img.shields.io/badge/discord.py%20%3E%3D-2.0.0a3575%2Bg45d498c-green)](https://github.com/Rapptz/discord.py)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dispanderfixed)
# NewDispanderfixed
このライブラリは、DiscordBotPortalJP様のdispanderライブラリを<br>
ライセンスに基づきクロヱ水族館サーバー用Bot向けに改変したものです。<br>
**このライブラリはdiscord.py 2.0.0aまたはそのフォークライブラリでしか動きません。**<br>
**discord.py 1.7.3をお使いの方は[dispanderfixed](https://pypi.org/project/dispanderfixed/)を使ってください。** <br>
[フォーク元ライブラリ様](https://github.com/DiscordBotPortalJP/dispander)

## インストール

`pip install newdispanderfixed`

## 依存関係
[discord.py-2.0.0a](https://github.com/Rapptz/discord.py)またはそのフォークライブラリを要求します。

## 機能は？

関数としての使用を想定しています。<br>
on_message内のどこかで実行してください。<br>
**元ライブラリ様にあった展開元メッセージ削除機能は無効化されています。**<br>

```python
import discord
from dispanderfixed import dispand

client = discord.Client()

@client.event
async def on_message(message):
    if message.author.bot:
        return
    await dispand(message)

client.run(token)
```
py-ticktock 0.1.2
Simple Python code metering library.

</p>
<h1 align="center"> ticktock </h1>
<p align="center">
  <em>Simple Python code metering library.</em>
</p>

<p align="center">
  <a href="https://github.com/victorbenichoux/ticktock/actions?query=branch%3Amain+"><img src="https://img.shields.io/github/workflow/status/victorbenichoux/ticktock/CI/main" /></a>
  <a href="https://github.com/victorbenichoux/ticktock/actions/workflows/main.yml?query=branch%3Amain+"><img src="docs/badges/tests.svg" /></a>
  <a href="https://victorbenichoux.github.io/ticktock/coverage/index.html"><img src="docs/badges/coverage.svg" /></a>
  <a href="https://pypi.org/project/py-ticktock/"><img src="https://img.shields.io/pypi/v/py-ticktock" /></a>
  <a href="https://pypi.org/project/py-ticktock/"><img src="https://img.shields.io/pypi/pyversions/py-ticktock" /></a>
  <a href="https://victorbenichoux.github.io/ticktock/index.html"><img src="https://img.shields.io/badge/docs-latest-blue" /></a>
  <a href="https://github.com/victorbenichoux/ticktock/blob/main/LICENSE"><img src="https://img.shields.io/github/license/victorbenichoux/ticktock" /></a>
</p>

---

`ticktock` is a minimalist library to profile Python code: it periodically displays timing of running code.

# Quickstart

First, install `ticktock`:
```
pip install py-ticktock
```

Anywhere in your code you can use `tick` to start a clock, and `tock` to register the end of the snippet you want to time:

```python
from ticktock import tick

clock = tick()
# do some work
clock.tock()
```

This will print the timing of the lines 3 to 5 in your code as so:
```
⏱️ [3-5] 50us count=1
```

# How is `ticktock` different?

`ticktock` becomes really useful when you are trying to time code that is called multiple times. 

Rather than printing a new line each time the code is visited, `ticktock` tracks the times and *only prints them every couple of seconds*. 

`ticktock`'s output is **compact and readable**, regardless of how many times you run through the code you are timing, or where this code is.

As an example, the following code:

```python
from ticktock import tick

for _ in range(1000):
    clock = tick()
    # do some work
    clock.tock()
```

Will result in a *single, continuously updated line of output* showing you the average time and how many times it was called so far:
```
⏱️ [4-6] 50us count=1000
```

# Documentation

Checkout the [documentation](https://victorbenichoux.github.io/ticktock/) for a complete manual.

`ticktock` is actively being developed, be sure to submit [issues](https://github.com/victorbenichoux/ticktock/issues) or [pull requests](https://github.com/victorbenichoux/ticktock/pulls) with ideas!