semvec/pypi-packages huggingface dataset:
book-package-svk 0.0.2
My first Python package
Keywords: python, book package svk

# Book Class Package

This is a simple Python package that defines a `Book` class with basic functionality to store and retrieve information about books.

## Features

- **Store Book Information**: Store a book's title, author, and publication year.
- **Show Author**: Retrieve the author of the book.
- **Show Publication Year**: Retrieve the publication year of the book.
- **Get Complete Book Info**: Retrieve a full description of the book, including title, author, and publication year.

## Installation

You can install this package from PyPI using `pip`:

```bash
pip install book_package_svk
```

### Usage
 ```python
from book_package_svk import Book

# Create a book instance
book = Book("1984", "George Orwell", 1949)

# Show the author's name
print(book.show_author(book.author))  # Output: Author: George Orwell

# Show the publication year
print(book.show_publication_year(book.publication_year))  # Output: Publication Year: 1949

# Get complete information about the book

print(book.get_info())  
# Output: Title: 1984, Author: George Orwell, Publication Year: 1949

 ```
pairasync 1.0.1
Pair async code to your sync code
Requires Python: >=3.8

# PairAsync | Seamless Async-Sync Integration for Python

[![PyPI - Version](https://img.shields.io/pypi/v/pairasync)](https://pypi.org/project/pairasync/)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)

**PairAsync** is a Python library that combines asynchronous (async) with synchronous (sync) code, enabling developers to execute async functions within sync environments. Ideal for enhancing Python applications from version 3.7 onwards, PairAsync simplifies the integration of asynchronous operations into traditional synchronous codebases.

## Installation
Get started with PairAsync by installing it via pip:

```bash
pip install pairasync
```

## Key Features

- **Run Async Functions Sync**: Execute simple async functions synchronously and retrieve results instantly.
- **Custom Async Handling**: For more complex async tasks, create tailored async functions and pair them with your sync code without converting your entire codebase to async.



## Usage
### Simple Async Function Execution
use PairAsync to run basic async functions in a sync context:
```python
from pairasync import sync
import asyncio

async def simple_async_func():
    await asyncio.sleep(1)
    return "Hello from async!"

result = sync(simple_async_func())
print(result)  # Output: Hello from async!
```
### Complex Async Scenarios
For complex scenarios running side effect prone functions or when using a larger event driven library (selenium, aiohttp, asyncpg) define your async function then run it in a sync context:
```python
from pairasync import sync
import aiohttp

async def get_text(url):
    async with aiohttp.ClientSession() as session:
        async with session.get(url) as response:
            return await response.text()

class SomeClass:

    def __init__(self):
        result = sync(get_text("https://example.com"))
        print(result)

object = SomeClass() 
```