semvec/pypi-packages huggingface dataset:
sizecalculator 0.1
A Python package for displaying file size
Requires Python: >=3.6
Keywords: file size calculator utility command-line filesize python

# Size Calculator

Size Calculator is a Python package that calculates the size of a file or folder and prints it in bytes, kilobytes, and megabytes.

## Installation

You can install the package using pip:

```bash
pip install sizecalculator
```

## Usage

Once installed, you can use the `sizecalculator` command from the command line:

```bash
sizecalculator /path/to/your/file_or_folder
```

Replace `/path/to/your/file_or_folder` with the actual path of the file or folder you want to analyze.

### Using `print_size` in Your Python Script

You can also use the `print_size` function in your Python scripts or projects. Here's an example:

```python
from sizecalculator import print_size

file_or_folder_path = "/path/to/your/file_or_folder"
print_size(file_or_folder_path)
```

Replace `/path/to/your/file_or_folder` with the actual path of the file or folder you want to analyze.

## Example

```bash
sizecalculator /path/to/your/file_or_folder
```

This will print the size of the specified file or folder in bytes, kilobytes, and megabytes.




The size information will be displayed in human-readable format, including bytes, kilobytes, and megabytes.
crawles 0.4.1
这是一个简单的爬虫封装模块，封装一些请求优化与下载功能
Requires Python: >=3.5

**0.3.3更新**

1 增加了请求参数类型自动识别

2 增加了curl的请求参数对比



**当前功能**

1 将curl数据转换为普通代码，类代码和线程池代码

2 可以将请求的数据进行格式化，请求参数可以直接是字符串

3 优化了请求的响应体对象
lova 0.1.1
Lova (Long-term Value Algorithm) is a recommendation algorithm framework focused on long-term value matching.
Requires Python: >=3.6

<div align="center"><img src="https://github.com/yinsn/Lova/blob/develop/docs/images/lova.svg" width="400"/></div>

# Lova
[![Python](https://img.shields.io/badge/python3.6%7C3.7%7C3.8%7C3.9-red?logo=Python&logoColor=white)](https://www.python.org)
[![PyPI](https://img.shields.io/pypi/v/lova?color=green)](https://pypi.org/project/lova/)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/yinsn/lova)

Lova (Long-term Value Algorithm) is a recommendation algorithm framework focused on long-term value matching.
pyxline 0.1.0
py-xline is an official xline client sdk, written in Python.
Requires Python: >=3.7

# Py-Xline

[![Apache 2.0 licensed][apache-badge]][apache-url]
[![codecov][cov-badge]][cov-url]

[apache-badge]: https://img.shields.io/badge/license-Apache--2.0-brightgreen
[apache-url]: https://github.com/datenlord/Xline/blob/master/LICENSE
[cov-badge]: https://codecov.io/gh/xline-kv/xline/branch/master/graph/badge.svg
[cov-url]: https://codecov.io/gh/xline-kv/go-xline

Py-Xline is an official xline client sdk, written in Python.

## Features

`py-xline` runs the CURP protocol on the client side for maximal performance.

## Supported APIs

- KV
  - [x] Put
  - [x] Range
  - [x] Delete
  - [x] Txn
  - [x] Compact
- Auth
  - [x] AuthEnable
  - [x] AuthDisable
  - [x] AuthStatus
  - [x] Authenticate
  - [x] UserAdd
  - [x] UserAddWithOptions
  - [x] UserGet
  - [x] UserList
  - [x] UserDelete
  - [x] UserChangePassword
  - [x] UserGrantRole
  - [x] UserRevokeRole
  - [x] RoleAdd
  - [x] RoleGet
  - [x] RoleList
  - [x] RoleGrantPermission
  - [x] RoleRevokePermission
- Lease
  - [x] Grant
  - [x] Revoke
  - [x] KeepAlive
  - [x] KeepAliveOnce
  - [x] TimeToLive
  - [x] Leases
- Watch
  - [x] Watch
- Lock
  - [x] Lock
  - [x] Unlock
- Cluster
  - [ ] MemberAdd
  - [ ] MemberAddAsLearner
  - [ ] MemberRemove
  - [ ] MemberUpdate
  - [ ] MemberList
  - [ ] MemberPromote
- Maintenance
  - [ ] Alarm
  - [ ] Status
  - [ ] Defragment
  - [ ] Hash
  - [x] Snapshot
  - [ ] MoveLeader

## Installation

``` bash
pip install pyxline
```

## Quickstart

``` python
from pyxline import client

async def main():
    curp_members = ["172.20.0.3:2379", "172.20.0.4:2379", "172.20.0.5:2379"]
    cli = await client.Client.connect(curp_members)
    kv_client = cli.kv_client

  await kv_client.put(b"key", b"value")

  res = await kv_client.range(b"key")

  kv = res.kvs[0]
  print(kv.key.decode(), kv.value.decode())
```

## Compatibility

We aim to maintain compatibility with each corresponding Xline version, and update this library with each new Xline release.

| go-xline | Xline |
| --- | --- |
| v0.1.0 | v0.6.1 |
normalization-gan 0.0.4
Normalization for TTS Input
Keywords: python

## Python library for text normalization for TTS input using gpt

# Installation

```bash
pip install normalization_gan
```
# Usage

```python
from normalization_gan import Normalization

# Create instance, provide openai_api_key as string to authenticate
normalization_obj = Normalization(OPENAI_API_KEY)

sample_text = "My phone number is 555-1234"

# Use normalize_text method 
normalized_text = normalization_obj.normalize_text(sample_text)

# Output string would look like : "My phone number is five five five one two three four."
```
indexical-sdk 0.0.1
Indexical SDK (for Python)
Requires Python: >=3.2

# Indexical Python SDK

The Indexical SDK for Python makes it easier to use the Indexical API **for Python projects that are interacting with an existing codebase**. It primarily contains helper functions that can extract the appropriate sources from code/configuration files, for use in Indexical API calls.

Currently, the SDK supports analyzing projects written in JS/TS or in Python. Specifically, the SDK can extract sources in the following ways:

In JS/TS projects:

- Analyzing a JS/TS source file (`extract_sources_from_js`)
- Analyzing a package.json file (`extract_sources_from_package_json`)
- Analyzing a package-lock.json file (`extract_sources_from_package_lock_json`)

In Python projects:

- Analyzing a Python JS/TS source file (`extract_sources_from_py`)
- Analyzing a requirements.txt file (`extract_sources_from_requirements_txt`)

## Installation

```bash
pip install indexical_sdk
```

## Usage

All `extract_sources_from_...` functions expect a single argument (the input file's contents, as a string), and return a Dict that can be combined with the body of your API request (containing either the `npm` or the `pypi` key, depending on the type of project being analyzed). The Indexical SDK is meant to work with whatever library you're currently using for accessing file contents and making API calls. The example here uses `requests` and python's `pathlib`, but could easily be adapted for any other choice:

```python
import indexical_sdk
from pathlib import Path
import requests
import os

package_file_contents = Path("/path/to/package.json").read_text()
prompt = "your prompt here"
npm = indexical_sdk.extract_sources_from_package_json(package_file_contents)["npm"]
API_KEY = os.getenv('INDEXICAL_API_KEY')

response = requests.post(
    "https://api.indexical.dev/context",
    json={
        "npm": npm,
        "prompt": prompt
    },
    headers={
        "Authorization": f"Bearer {API_KEY}"
    }
)
# see https://indexical.dev/docs for API docs on the expected response

```

The same example applies for using any of the SDK's included extractors (listed above, in the first section of the README).