semvec/pypi-packages huggingface dataset:
chaster-sdk 0.1.7
Chaster python sdk
Requires Python: >=3.8

# Chaster Python SDK
`pip install --upgrade chaster-sdk`

```python
from chaster import api
import os
chaster_api = api.ChasterAPI(os.environ.get('CHASTER_BEARER_TOKEN'), user_agent='your_username/1.0')
```

See the [demos](https://github.com/PoofyEnigma/chaster-python-sdk/tree/main/demos) folder for examples of utilizing the SDK. 

[pypi project](https://pypi.org/project/chaster-sdk/)

# Contributing

You want to? Nice! Hmu on Discord, username PupHimbo

# Credits

Repository started by copying [this python boilerplate](https://github.com/AlexanderWillner/python-boilerplate)
docxedit 1.0.4
Edit Word documents but keep original formatting
Requires Python: >=3.7
Keywords: document, docx, edit, formatting, python-docx, word

# Mass Edit Word Documents Without Changing the Original Formatting

Edit Word documents effortlessly and without changing the original formatting of the document. 

The original `docx` library is great but it's missing one important feature: *keeping the original formatting*.

However, this functionality is pretty useful if you want to automate document writing or editing and need to adhere to strict formatting rules. This is a common requirement in corporate environments for example.

This module adds that feature with some functions that allow editing documents without changing the original formatting.

[![PyPI version](https://badge.fury.io/py/docxedit.svg)](https://badge.fury.io/py/docxedit)

## Install

With pip: `pip install docxedit`

## Dependencies

Included as a dependency: `python-docx` (`docx`)

## Functionalities
Most of the functions in this module work primarily with **runs**, which are sequences of strings with the same formatting style. Breaking the document into runs allows us to edit the text without changing the original formatting.

Some of the functionalities that this module include:
- Replacing all occurrences of a string with a new string (optionally limit this up to a paragraph number, and include or exclude tables)
- Removing a line that includes a specific string
- Add text to a table

The beauty of this module is that you can use all of its functions to **mass edit** Word documents with consistency and precision. This is useful especially in corporate environments where a lot of document writing or editing can be automated. 


## How to Use

Usage of this module is really simple. Here are some examples:

```python
from docx import Document
import docxedit

document = Document('path/to/your/document.docx')

# Replace all instances of the word 'Hello' in the document with 'Goodbye' (including tables)
docxedit.replace_string(document, old_string='Hello', new_string='Goodbye')

# Replace all instances of the word 'Hello' in the document with 'Goodbye' but only
# up to paragraph 10
docxedit.replace_string_up_to_paragraph(document, old_string='Hello', new_string='Goodbye', 
                                        paragraph_number=10)

# Remove any line that contains the word 'Hello' along with the next 5 lines after that
docxedit.remove_lines(document, first_line='Hello', number_of_lines=5)

# Add text in a table cell (row 1, column 1) in the first table in the document
docxedit.add_text_in_table(document.tables[0], row_num=1, column_num=1, new_string='Hello')

# Save the document
document.save('path/to/your/edited/document.docx')
```
optional-requirements 0.0.2
Manage optional requirements and their versions at runtime
Requires Python: >=3.11

# optional_requirements

Manage optional requirements and their versions at runtime.

## Examples

### Managing requirements specified in a file

If you have a `requirements` file in your package (it must be included when installing the package), you can it to
manage optional dependencies.

The `find_requirements_file` function will start at the given path and search for a file matching the given name,
climbing up the directory tree until it finds a match or it goes out of a Python package (i.e., it no longer sees an
`__init__.py` file.).

```python
from pathlib import Path

from optional_requirements import (
    Requirements,
    parse_requirements_file,
    find_requirements_file,
    IncompatibleRequirementError,
    MissingRequirementError
)

r = Requirements(requirements=parse_requirements_file(
    find_requirements_file(
        start=Path(__file__),
        name="optional-requirements.txt",
    )
))

try:
    pd = r.try_import(name="pandas", reason="This is required to read a CSV file.")
except IncompatibleRequirementError as e:
    # The wrong version is installed.
    print(e.current_version)
    print(e.required_version)
    pass
except MissingRequirementError as e:
    # The requirement is not installed.
    print(e.required_version)
    pass
else:
    # Do something with the imported dependency.
    df = pd.DataFrame()
    pass

```

### Managing requirements as a group in code

```python
from optional_requirements import Requirements
from packaging.requirements import Requirement

r = Requirements(requirements=[Requirement("pandas==2.*"), Requirement("numpy<2")])
r.try_import(name="pandas", reason="This is required to read a CSV file.")
```

### Managing requirements one by one in code

```python
from optional_requirements import try_import_requirement
from packaging.requirements import Requirement

try_import_requirement(requirement=Requirement("numpy<2"), reason="Required for quick maths.")
```