semvec/pypi-packages huggingface dataset:
outputs 1.14
This is a Python library designed to extend CLI printing functionalities, primarily focusing on logging features similar to logging, but also exploring other directions. Additionally, it supports a high-fidelity style akin to PinkShell.
Requires Python: >=3.6

# Output Module

**Project Name**: outputs

**Author**: Pinpe ([https://pinpe.top](https://pinpe.top))

**Encoding**: UTF-8

**License**: MIT License

**Dependencies**: `conkits` (optional)、`requests` (optional)

**Version**: 1.14 (2024-11-1)

**Description:**
This is a Python library designed to extend the functionality of CLI printing. The primary development focus is on logging features similar to `logging`, but it also includes other functionalities and supports a high-fidelity style for PinkShell.

**Advantages:**
- Simple to learn with support for some customization.
- All-in-one functionality that includes log output, loading text, color classes, cursor control, and more.
- Easy configuration without the need to alter your project structure.
- Extremely lightweight, consisting of a single file, and requires only two standard libraries and one optional third-party library.
- Fully open-source with no backdoors.
- Comprehensive error handling, type checking, and docstrings.

**Getting Started:**
1. Install by entering this command in your terminal: `pip install outputs`
2. Import the library into your program: `from outputs import *`

**Update Notes:**
- Added more emoji mappings.
- Added special character mappings.
- Add a docstring for each class.
- Add a docstring for each module.
- Add text formatting.
starlette-sessions 0.3.0
Adds server-side session support to your Starlette application
Requires Python: >=3.8

# starlette-sessions

Adds server-side session support to your Starlette application

## License

[MIT License](LICENSE)

## Contributors

- Jesse McLaughlin <nzjess@gmail.com>

## Installing

```shell
# with redis support, for example

# from source
poetry install --extras redis
```

## Quick Start

```python
from starlette.applications import Starlette
from starlette.middleware import Middleware
from starlette.requests import Request
from starlette.responses import JSONResponse
from starlette.routing import Route
import uvicorn

from starlette_sessions.middleware import SessionMiddleware
from starlette_sessions.cookie.backend import CookieSessionBackend
from starlette_sessions.signedcookie.backend import SignedCookieSessionBackend
from starlette_sessions.memory.backend import MemorySessionBackend
from starlette_sessions.redis.backend import RedisSessionBackend


async def homepage(request: Request):
    return JSONResponse({"hello": "world"})


async def session_set(request: Request):
    counter = request.session.get("counter")
    response = JSONResponse({"counter": counter})
    request.session["counter"] = (counter or 0) + 1
    return response


async def session_read(request: Request):
    return JSONResponse(
        {k: v for k, v in request.session.items()}
    )


async def session_clear(request: Request):
    counter = request.session.get("counter")
    response = JSONResponse({"counter": counter})
    request.session.clear()
    return response


async def session_unsafe(request: Request):
    try:
        counter = request.session["counter"]
    except KeyError:
        counter = None
    return JSONResponse({"counter": counter})


#
# try out these backends:
#
session_backend = CookieSessionBackend()
# session_backend = SignedCookieSessionBackend(secret_key="s3cr3t", max_age=30)
# session_backend = MemorySessionBackend()
# session_backend = RedisSessionBackend(ttl=30)


app = Starlette(
    debug=True,
    routes=[
        Route("/", homepage),
        Route("/set", session_set),
        Route("/read", session_read),
        Route("/clear", session_clear),
        Route("/unsafe", session_unsafe),
    ],
    middleware=[
        Middleware(SessionMiddleware, backend=session_backend),
    ]
)

uvicorn.run(app, host="0.0.0.0", port=8080)
```

## Development
```shell
# setup
poetry install --with dev --all-extras

# linting
poetry run ruff src tests

# formatting
poetry run black src tests
poetry run isort src tests

# type checking
poetry run mypy src tests

# testing
poetry run pytest -s tests/unit
```
lerxmlspy 0.0.2
Um pacote para leitura de arquivos XML e converter para DataFrames

# Pacote Ler XML SETRABH python - lerxmlspy

## Sobre o Pacote
O pacote consta com duas funÃ§Ãµes principais sendo:

1. retorna_chave_acesso:
   1. Esta funÃ§Ã£o recebe apenas um argunto, o "xml_content" no qual deve ser informado a variÃ¡vel que contÃ©m o xml logo apÃ³s ser aberto
   
   #### Exemplo

   ```python
   with open(arquivo_xml, 'rb') as f:
        xml_content = f.read()
   lerxmlspy.retorna_chave_acesso()

2. DataFrameFromXML:
   1. Esta funÃ§Ã£o contÃ©m 4 argumentos, sendo apenas um obrigatorio obrigatÃ³rios
      1. path (obrigatÃ³rio) bytes: Caminho do arquivo XML
      2. nome_documento (opcional) string: Inseri coluna com o nome do documento xml
      3. list_manter (opcional) list: Se nÃ£o for informada utiliza a lista padronizada
      4. dic_names (opcional) dict: Se nÃ£o for informada utiliza o dicionÃ¡rio padrÃ£o

   ### Exemplo
   ```python
   lerxmlspy.DataFrameFromXML(caminho_arquivo)
s3-operations-package-nci-23384069 0.0.1
An AWS s3 utility package
Requires Python: >=3.8

S3Manager - A Python Package for Interacting with AWS S3

This Python package, S3Manager, provides a convenient way to interact with Amazon S3 buckets and objects. It offers functionalities for creating, managing, uploading, downloading, and deleting buckets and objects.

Installation

To install the S3Manager package, you can use pip

Bash
pip install s3manager


Usage

1. Import the S3Manager Class:
from s3manager import S3Manager

2. Create an S3Manager Object:
s3_manager = S3Manager()

3. Interact with S3 Buckets and Objects:
The S3Manager class provides various methods for managing S3 resources. Here are some examples:
* Creating a Bucket:
bucket_name = "my-bucket"
region = "us-west-2"  # Optional, defaults to us-east-1

s3_manager.create_s3_bucket(bucket_name, region)

* Listing Existing Buckets:
s3_manager.list_buckets()

* Uploading a File:
file_name = "data.txt"
bucket_name = "my-bucket"
object_key = "data/processed.txt"  # Optional, defaults to file_name

s3_manager.upload_file(file_name, bucket_name, object_key)

* Uploading a Base64 Encoded String:
base64_string = "your_base64_encoded_data"
bucket_name = "my-bucket"
object_key = "data.txt"  # Optional

s3_manager.upload_base64_file(base64_string, bucket_name, object_key)

* Downloading an Object (Saving to File):
bucket_name = "my-bucket"
object_key = "data.txt"
destination_file_name = "downloaded_data.txt"

s3_manager.download_s3_object(bucket_name, object_key, destination_file_name)
Downloading an Object (Returning Base64 String):
bucket_name = "my-bucket"
object_key = "data.txt"

base64_data = s3_manager.download_s3_object_to_base64(bucket_name, object_key)

if base64_data:
    print(f"Downloaded base64 data: {base64_data}")
else:
    print("Error downloading object")

* Deleting a Bucket:
bucket_name = "my-bucket"
region = "us-west-2"  # Optional, region where the bucket resides

s3_manager.delete_bucket(region, bucket_name)
XMZSDK 0.1.0
A collection of services for natural language processing and machine translation.

# 米粥API (XMZAPI)
[![PyPI version](https://badge.fury.io/py/XMZAPI.svg)](https://pypi.org/project/XMZAPI/)

## 简介

XMZAPI是一个基于Python的SDK，旨在帮助开发者快速构建和接入米粥API服务。通过这个SDK，用户可以轻松地完成各种API调用。

## 安装依赖

为了使用XMZAPI，你需要安装以下依赖：

- `huaweicloudsdkcore`：华为云SDK核心模块。
- `huaweicloudsdknlp`：华为云自然语言处理SDK。
- `ryptography`：用于加密和解密数据的Python库。

本库已经发布到了pypi可直接安装XMZAPI，安装过程中会自动安装本库所需要的依赖：

```bash
pip install XMZAPI
```

## 使用方法

详细的使用方法请查看 [XMZAPI 使用方法](USAGE.md)。

## 联系作者

如果你在使用XMZAPI时遇到任何问题，或者有任何建议和反馈，欢迎通过以下方式联系作者：

- **姓名**：祁筱欣
- **开发者邮件**：[mzapi@x.mizhoubaobei.top](mailto:mzapi@x.mizhoubaobei.top)
- **项目网址**：[https://github.com/xiaomizhoubaobei/XMZAPI](https://github.com/xiaomizhoubaobei/XMZAPI)

## 开源许可证

MZAPI采用 [MIT许可证](LICENSE)。

## 贡献

我们非常欢迎社区的贡献！以下是一些贡献方式：

- 提交问题报告和功能请求
- 提交代码改进和修复
- 改进文档和示例

如果你对项目感兴趣，欢迎成为贡献者！更多信息请查看[贡献指南](CONTRIBUTING.md)。