semvec/pypi-packages huggingface dataset:
pyenergyx 0.2
A simple energy conversion library

# PyEnergyX

PyEnergyX is a robust Python library aimed at professionals in the energy industry. It provides a reliable and accurate method for converting between various energy units.

## Overview

With PyEnergyX, you can conveniently convert between common units as well as less conventional ones like Tonne of Coal Equivalent, Barrel of Aviation Gasoline, BTU, tons of coal, barrels of oil, joules, and many more. 

The main source for the conversion factors used in this library is the Energy Information Administration (eia.gov) and the American Physical Society (aps.org), which ensures high accuracy and reliability of the conversions.

## Installation

To install PyEnergyX, you can use pip to install directly from the GitHub repository:

```pip install git+https://github.com/mariodgr/pyenergyx.git```

## Usage
Here's how to use PyEnergyX:

First, import the EnergyConverter class and create an instance:

```
from pyenergyx import EnergyConverter

converter = EnergyConverter()
```
You can get a list of all available energy units:

```
units = converter.get_units()
# Returns a list of dictionaries with 'abbreviation' and 'name' of a unit
```

To convert from one energy unit to another, use the convert() method:

```
result = converter.convert(1000, 'J', 'kWh')
# Converts 1000 Joules to Kilowatt Hours
```

## Error Handling
The ConversionError exception will be raised if there are any issues during the conversion process, such as unknown units or invalid values.

## Contributing
Contributions to PyEnergyX are very welcome! Feel free to fork the repository and submit pull requests.

## License
This project is open source, provided under the MIT License. Feel free to use, modify, and distribute PyEnergyX as you see fit.
flake8-eol 0.0.8
Flake8 plugin to enforce Unix/Linux EOL consistency
Requires Python: >=3.8

# flake8-eol

Flake8 plugin to enforce Unix/Linux EOL consistency. The plug-in simply checks that Python files' line endings are terminated with '\n' only.

# Error codes

| Error code | Description                                      |
| :--------: | :----------------------------------------------- |
|   EOL001   | Line endings are not consistent with Unix/Linux. |

# Installation

```bash
pip install flake8-eol
```
pypdtools 0.0.5
Package with tools for pandas
Requires Python: >=3.7
Keywords: pandas,tools,asyncio

# Pypdtools

Pypdtools is a Python package that extends the functionality of Pandas DataFrames by introducing the `PtDataFrame` class. `PtDataFrame` provides additional features and enhancements to work with DataFrames in a more convenient and flexible way.

## Features

- Asynchronous iteration support: `PtDataFrame` implements both synchronous and asynchronous iterators, allowing for efficient and convenient data processing in asynchronous contexts.
- Context manager support: `PtDataFrame` can be used as a context manager to easily access the encapsulated Pandas DataFrame.
- Concatenation and reduction: `PtDataFrame` supports concatenation of multiple instances and reduction of a list of `PtDataFrame` objects into a single instance.
- Column extraction: Easily extract a column as a list from a `PtDataFrame`.

**Docs:** <a href="https://msbar.github.io/pypdtools" target="_blank">https://msbar.github.io/pypdtools</a>

**Source code:** <a href="https://github.com/msbar/pypdtools" target="_blank">https://github.com/msbar/pypdtools</a>

## Installation

You can install pypdtools using pip:
```
pip install pypdtools
```

## Usage

Here's an example of how to use the `PtDataFrame` class:

```python
import pandas as pd
from pypdtools.core.dataframe import PtDataFrame

# Create a Pandas DataFrame
data = {
    "a": [1, 2, 3],
    "b": [4, 5, 6],
    "c": [7, 8, 9]
}
df = pd.DataFrame(data)

# Create a PtDataFrame from the Pandas DataFrame
pt_df = PtDataFrame(df)

# Async Iterate over rows
async for row in pt_df:
    print(row)

# Concatenate PtDataFrames
pt_df2 = PtDataFrame(df)
concatenated = pt_df + pt_df2

# Reduce a list of PtDataFrames
pt_df3 = PtDataFrame.reduce([pt_df, pt_df2])

# Extract a column as a list
col_values = pt_df.col_to_list("a")
print(col_values)
```
torscrape 0.1.22
A webscrape package
Requires Python: >=3.6

# TorScrape

TorScrape: Efficient Web Scraping for Data Extraction


## Features

-   **Information Retreival**: Easily fetch information of any TikTok user profile.

-   **Flexible Customization**: Customize the number of video links to retrieve for optimal data collection.

-   **No API Dependency**: Independently collect TikTok video links without relying on TikTok APIs.

-   **Pythonic and Easy-to-Use**: Follows Pythonic conventions with an intuitive interface for seamless integration.



## Installation

Install TorScrape using pip:
-   pip install -r requirements.txt
-   pip install torscrape

# note
-   TorScrape requires Python 3.6 or later.

## Documentation
-   For detailed usage instructions and additional functionality, please refer to the documentation on the github page.

## Contributing
-   We welcome contributions to TorScrape! If you encounter issues, have suggestions for improvements, or would like to contribute new features, please feel free to open an issue or submit a pull request on GitHub.


## License
-   This package is licensed under the MIT License. See the LICENSE file for more information.


### Example

```shell
Here's an example of how to fetch the latest video links from a TikTok user profile:
```

```python
import TorScrape

username = "example_user"
count = 10

ToreScrape.get_latest_vid_links(username, count)
```
evesso 0.1.3
Python SSO Authorization for Eve Online API applications
Requires Python: >=3.6

# EveSSO

SSO Authorization for Eve Online.

## About

This library implements the native SSO authorization flow as described [here](https://docs.esi.evetech.net/docs/sso/native_sso_flow.html). EveSSO will perform the authorization process as needed, store your access and refresh tokens, and refresh your access token as needed. It will then provide the required header for your requests.

## Installation

```shell
pip install evesso
```

## Quickstart

```python
from evesso import SSO
import requests

sso = SSO(
    client_id='1234567890asdfghjklqwertyuiop',
    callback_url='http://localhost/',
    scope='esi-characters.some_scope.v1 esi-characters.some_scope.v1'
)
response = requests.get(
    'https://esi.evetech.net/latest/markets/structures/SOME_STRUCTURE_ID/?datasource=tranquility',
    headers=sso.get_header()
)
response.raise_for_status()
print(response.json())
```

### Using .env file

```dotenv
CLIENT_ID=1234567890asdfghjklqwertyuiop
CALLBACK_URL=http://localhost/
SCOPE="esi-characters.some_scope.v1 esi-characters.some_scope.v1"
```

Esi will check environment variables for credentials if not parameterized.

```python
from evesso import SSO
from dotenv import load_dotenv
import requests

load_dotenv()

sso = SSO()
response = requests.get(
    'https://esi.evetech.net/latest/markets/structures/SOME_STRUCTURE_ID/?datasource=tranquility',
    headers=sso.get_header()
)
response.raise_for_status()
print(response.json())
```

## Authorizing on a remote machine

1. Set the `cli` parameter to `True`.
2. The auth url will be printed to the command line.
3. Open the auth url in a browser and complete the auth process
4. The SSO server will make a get request to the machine where you opened the auth url
5. Copy the callback url and paste it into the command line so evesso can parse it

```python
from evesso import SSO

sso = SSO(cli=True)
...
```
coolfunc 1.1.4
一些小功能的集合
Requires Python: >=3.7
Keywords: coolfunc

# 项目描述

一些小功能的集合。

# 关于作者

作者：lcctoor.com

域名：lcctoor.com

邮箱：lcctoor@outlook.com

[主页](https://lcctoor.github.io/me/) \| [微信](https://lcctoor.github.io/me/author/WeChatQR-max.jpg) \| [Python交流群](https://lcctoor.github.io/me/lccpy/WechatReadersGroupQR-original.jpg) \| [捐赠](https://lcctoor.github.io/me/donation/donationQR-1rmb-max.jpg)
osuExchange-trustytrojan 0.0.1
A simple osu!APIv2 wrapper for Python

# osuExchange

An osu! API wrapper written in Python. Built to give developers a simple and easy-to-use interface to the osu! API.

## Dependencies

```
pip install requests
```

## Building

Create the virtual environment first:

```
python -m venv .
```

Enter the virtual environment:

- On Windows: `Scripts\activate`
- On Linux: `sh Scripts/activate`

Finally build the package:

```
python setup.py bdist_wheel
```
rstyleslice 1.4.5
一套符合直觉的索引和切片语法
Requires Python: >=3.7
Keywords: rstyleslice,slice

# 项目描述

一套符合直觉的索引和切片语法。

|                                        | **Python**                                                           | **rstyleslice**                                                      |
| -------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| **索引**                         | 从 0 开始（0 表示第 1 个元素）<br /><br />-1 表示倒数第 1 个元素（相同点） | 从 1 开始（1 表示第 1 个元素）<br /><br />-1 表示倒数第 1 个元素（相同点） |
| **切片**                         | 左闭右开区间，例如：<br />[3: 5] 表示提取第 4、5 这 2 个元素               | 双闭区间，例如：<br />[3: 5] 表示提取第 3、4、5 这 3 个元素                |
| **从右往**<br />**左切片** | step（步长）为负值，例如：<br />[9: 1: -1] 表示提取第 9~3 这 7 个元素      | step（步长）始终为正值，例如：<br />[9: 1: 1] 表示提取第 9~1 这 9 个元素   |

切片格式为  [start: stop: step]  ，start 表示从哪条开始，stop 表示到哪条停止，step 表示步长。当  step>=2  时表示间隔式切片。

# 关于作者

作者：lcctoor.com

域名：lcctoor.com

邮箱：lcctoor@outlook.com

[主页](https://lcctoor.github.io/me/) \| [微信](https://lcctoor.github.io/me/author/WeChatQR-max.jpg) \| [Python交流群](https://lcctoor.github.io/me/lccpy/WechatReadersGroupQR-original.jpg) \| [捐赠](https://lcctoor.github.io/me/donation/donationQR-1rmb-max.jpg)

# Bug提交、功能提议

您可以通过 [Github-Issues](https://github.com/lcctoor/lccpy/issues)、[微信](https://lcctoor.github.io/me/author/WeChatQR-max.jpg) 与我联系。

# 安装

```
pip install rstyleslice
```

# [教程](https://lcctoor.github.io/lccpy/?doc=rstyleslice)

# 教程预览

#### 导入

```python
from rstyleslice import rslice
```

#### 创建R风格容器

```python
obj = rslice([1,2,3,4,5,6,7,8,9])

# Python中任何可以索引和切片的对象（如list、str、tuple）都可以转化成R风格容器。
```

#### 索引取值

```python
obj[1]
# >>> 1
```

#### 索引赋值

```python
obj[1] = 111
obj[:]
# >>> [111, 2, 3, 4, 5, 6, 7, 8, 9]
```

#### 切片取值

```python
obj[3:7]  # >>> [3, 4, 5, 6, 7]
obj[7:3]  # >>> [7, 6, 5, 4, 3]
obj[3:7:2]  # >>> [3, 5, 7]
obj[8:2:3]  # >>> [8, 5, 2]
```

#### 切片赋值

```python
obj[4:6] = [44, 55]
obj[:]
# >>> [111, 2, 3, 44, 55, 7, 8, 9]

obj[4:6] = []
obj[:]
# >>> [111, 2, 3, 8, 9]

obj[4:] = [1, 2, 3, 4, 5]
obj[:]
# >>> [111, 2, 3, 1, 2, 3, 4, 5]

obj[4:100] = ['1', 2, 3, 4, 5]
obj[:]
# >>> [111, 2, 3, '1', 2, 3, 4, 5]
```
increment 1.3.5
分布式主键生成器，支持多机器|多进程|多线程并发生成
Requires Python: >=3.7
Keywords: increment

# 项目描述

分布式主键生成器，支持多机器|多进程|多线程并发生成。

# 关于作者

作者：lcctoor.com

域名：lcctoor.com

邮箱：lcctoor@outlook.com

[主页](https://lcctoor.github.io/me/) \| [微信](https://lcctoor.github.io/me/author/WeChatQR-max.jpg) \| [Python交流群](https://lcctoor.github.io/me/lccpy/WechatReadersGroupQR-original.jpg) \| [捐赠](https://lcctoor.github.io/me/donation/donationQR-1rmb-max.jpg)

# Bug提交、功能提议

您可以通过 [Github-Issues](https://github.com/lcctoor/lccpy/issues)、[微信](https://lcctoor.github.io/me/author/WeChatQR-max.jpg) 与我联系。

# 安装

```
pip install increment
```

# 教程

#### 导入

```python
from increment import incrementer
```

#### 创建生成器

```python
inc = incrementer()
```

#### 使用创建生成器时的时间

```python
inc.pk1()
# >>> 'lg85x42f_gsdo_258_1'

inc.pk1()
# >>> 'lg85x42f_gsdo_258_2'

# 'lg85x42f'是创建生成器时的时间
```

#### 使用当前时间

```python
inc.pk2()
# >>> 'lg8657cj_gsdo_258_3'

# 'lg8657cj'是当前时间
```

#### 只返回自增主键

```python
inc.pk3()
# >>> '4'

inc.pk3()
# >>> '5'
```