semvec/pypi-packages huggingface dataset:
array-subarray-utils 0.1.0
A library for calculating subarray sums for arrays and circular arrays
Requires Python: >=3.6

# Array Subarray Utils

A Python library to compute subarray sums efficiently.

## Features
- **Maximum Subarray Sum**: Finds the largest sum of a contiguous subarray.
- **Minimum Subarray Sum**: Finds the smallest sum of a contiguous subarray.
- **Maximum Circular Subarray Sum**: Handles circular arrays for the largest sum.
- **Minimum Circular Subarray Sum**: Handles circular arrays for the smallest sum.

## Installation
```bash
pip install array-subarray-utils
sportnews-api 0.1.8
Official Python SDK for the SportNews API - Access sports news in real time
Requires Python: >=3.9
Keywords: sports news api sdk actualités sportives


# SportNews API SDK

An official Python SDK for the SportNews API, providing streamlined access to real-time sports news. This library allows developers to easily integrate sports news feeds into their Python applications.

## Installation

```bash
pip install sportnews-api
```

## Usage

```python
from sportnews import SportNewsAPI

# Initialize the client with your API key
api = SportNewsAPI('YOUR_API_KEY')

# Retrieve the latest news
articles = api.get_news(language='fr', size=5)

print("Dernières actualités :")
if articles['items']:
    for article in articles['items']:
        print(f"Titre: {article['title']}")
        print(f"Date: {article['published']}")
        print(f"Description: {article['description']}")
        print(f"Sport: {article['sport']}")
        print("---")
else:
    print("Aucun article trouvé")
```

### Searching for Articles

```python
# Search for articles about football from the last 7 days

results = api.search_news(
    query="Champions League",
    sport="football",
    language="en",
    size=10
)

if results['items']:
    for article in results['items']:
        print(f"Titre: {article['title']}")
        print(f"Date: {article['published']}")
        print(f"Description: {article['description']}")
        print(f"Sport: {article['sport']}")
        print("---")
else:
    print("Aucun résultat trouvé")
```

## Key Features

- Retrieve the latest sports news
- Search articles with advanced filters
- Multilingual support (FR, EN, ES, IT, DE)
- Pagination of results
- Robust error handling
- Automatic parameter validation
- Date-based search for temporal filtering

## NewsArticle Object

Each news article returned by the API has the following attributes:
- `title` (str): The title of the article.
- `published` (datetime): The publication date.
- `description` (str): A brief summary of the article.
- `sport` (str): The sport associated with the article.
- `language` (str): The language of the article.

## Error Handling

The SDK raises a `SportNewsAPIError` for any issues during API requests. Make sure to handle these exceptions in your application:

```python
from sportnews import SportNewsAPI, SportNewsAPIError

try:
    news = api.get_latest_news(language='fr')
except SportNewsAPIError as e:
    print(f"An error occurred: {e}")
```

## Supported Languages

- French (`fr`)
- English (`en`)
- Spanish (`es`)
- Italian (`it`)
- German (`de`)

## License

This project is licensed under the MIT License.

## Running Tests

The SDK includes a suite of unit tests to validate its functionality. Run the following command to execute the tests:

```bash
python -m unittest discover tests
```

## Support

- Documentation: [https://docs.sportnews-api.com](https://docs.sportnews-api.com)
- Support email: support@sportnews-api.com

Developed and maintained by the SportNews API team.
order-management-silverstalan 0.1.5
Object-oriented AWS Order Management System with DynamoDB, S3, and SNS integration. Features Order Processor, DynamoDB Handler, Storage Handler, Document Handler (S3), and Notification Service components.
Requires Python: >=3.8



A comprehensive, object-oriented order management system using AWS services (DynamoDB, S3, and SNS).
The main controller that orchestrates all operations, handling the complete order lifecycle from creation to deletion.
Manages all database operations through an abstract interface, providing CRUD operations for orders in DynamoDB.
Abstract base class defining the contract for storage operations, enabling easy extension for different storage solutions.
Handles document storage and retrieval in AWS S3, maintaining order documents in JSON format.
Manages event notifications through AWS SNS, keeping all relevant parties informed about order status changes.
Object-oriented design with clear separation of concerns
- Order CRUD operations with DynamoDB storage
- Document storage in S3
- Event notifications via SNS
- Decimal and JSON encoding utilities
- Type hints and proper error handling
pip install order-management-silverstalan
Requirements

Python 3.8+
boto3
AWS credentials configured
AWS resources:

DynamoDB table
S3 bucket
SNS topic



Author
silverstalan