semvec/pypi-packages huggingface dataset:
printx 1.0.1
A Python package that provides a convenient print-like function for logging messages with various log levels, making it easy to integrate logging into your projects.
Requires Python: >=3.6

# printx

printx is a Python package that provides a convenient print-like function for logging messages with various log levels, making it easy to integrate logging into your projects.

## Installation

You can install printx via pip:

```sql
pip install printx
```

## Usage

```python
from printx import printx_configure, printx

# Configure logging (optional: specify a custom log filename)
printx_configure()

# Use the printx function
printx("This is a default info message")
printx("This is a debug message", log_level='debug')
printx("This is an info message", log_level='info')
printx("This is a warning message", log_level='warning')
printx("This is an error message", log_level='error')
printx("This is a critical message", log_level='critical')

def example_function():
    try:
        printx("Starting the function")
        printx("Performing an action")
        error_condition = True  # Simulate an error condition
        if error_condition:
            raise ValueError("An error occurred")
        printx("Function finished")
    except Exception as e:
        printx(f"Exception occurred: {e}", log_level='error')

example_function()
```

## Configuration

The `printx_configure` function allows you to configure the logging settings. By default, it logs messages to a file named after the script that uses the `printx` function and to the console.

### To configure logging:

```python
from printx import printx_configure
```

### Configure logging with default settings

```python
printx_configure()
```

### Configure logging with a custom log filename

```python
printx_configure(log_filename='custom_log.log')
```

### Configure logging with a different log level

```python
printx_configure(level=logging.WARNING)
```

The `printx_configure` function accepts the following parameters:

- `log_filename` (str, optional): The name of the log file. If not provided, the default is the script's name with a `.log` extension.
- `level` (int, optional): The logging level. Default is `logging.DEBUG`.


## License

This project is licensed under the MIT License.

## Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

## Author

[Javer Valino](https://github.com/phintegrator)

## Acknowledgments

- Thanks to the open-source community for providing the tools and inspiration for this project.
- Special thanks to all contributors and users of the package.
pyssam 0.2.3
A Python library for statistical modelling of biomedical shape and appearance
Requires Python: >=3.7

# Python Statistical Shape and Appearance Modelling (pyssam)

[![DOI](https://zenodo.org/badge/576337077.svg)](https://zenodo.org/badge/latestdoi/576337077)

Welcome to **pyssam**, a Python library for statistical modelling of biomedical shape and appearance.


## Installation

pyssam can be installed using

```bash
pip install pyssam
```

## Documentation

Information on how to use pyssam, such as jupyter notebooks and API documentation are available on 
[readthedocs](https://pyssam.readthedocs.io/en/latest/).

## Getting help

If you observe any unexpected behaviour, have any feature requests or questions, please submit an issue to 
this repository's issue tracker.
Please state which version of python and pyssam's dependencies that you are using, as well as your operating system.

## Citing us

If you use pyssam in your work, please cite the following:

```
@article{williams2023pyssam,
  author = {Williams, Josh and Ozel, Ali and Wolfram, Uwe},
  title = {pyssam -- a Python library for statistical modelling of biomedical shape and appearance},
  journal = {arXiv preprint arXiv:2301.04416},
  publisher = {arXiv},
  year = {2023},
}
```
openaichatlib 1.1.5
OpenAI Chat API
Requires Python: <3.13,>=3.9
Keywords: openai, ChatGPT, api, chat

# OpenAI Chat Python Lib

## Requirements
```
python: >=3.9
```

## Installation

```
pip install openaichatlib
```

## Usage

```python
from openaichatlib.V3 import Chatbot

bot = Chatbot(
    api_key="YOUR_API_KEY", 
    api_url="YOUR_API_HOST", # default is https://api.openai.com/v1/chat/completions
    engine='gpt-3.5-turbo-16k',
    timeout=120, 
    max_tokens=15_000, 
    proxy="YOUR_PROXY_URL", # like http://127.0.0.1:7890
    system_prompt="You are ChatGPT, a large language model trained by OpenAI"
)

reply = bot.ask("Hello")
print(reply)
```
butch-filename-substring-remover 0.1.3
A batch renaming script to remove substrings from filenames and directories.
Requires Python: >=3.8

```markdown
# Butch Filename Substring Remover

This is a batch renaming script to remove substrings from filenames and directories.

## Installation

You can install this package using pip:

```bash
pip install butch_filename_substring_remover
```

## Usage

### Command Line

```bash
butch-rename /path/to/directory substring1 substring2
```

### As a Module

```python
from butch_filename_substring_remover import rename_directory

root_directory = '/path/to/directory'
substrings_to_remove = ['substring1', 'substring2']

try:
    rename_directory(root_directory, substrings_to_remove)
    print("Renaming completed successfully.")
except Exception as e:
    print(f"An error occurred: {e}")
```

## Example

Assume you have a directory with the following files:

```
/example_dir
    file1_test.txt
    file2_sample.txt
    subdir1_test
```

Running the following command:

```bash
butch-rename /example_dir test sample
```

will rename the files to:

```
/example_dir
    file1_.txt
    file2_.txt
    subdir1_
```

## License

MIT License
starccato 0.0.2
Starccato is a fast stellar core-collapse gravitational wave generator.
Requires Python: >=3.8

[![Coverage Status](https://coveralls.io/repos/github/starccato/starccato/badge.svg?branch=main)](https://coveralls.io/github/starccato/starccato?branch=main)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![PyPi version](https://pypip.in/v/starccato/badge.png)](https://crate.io/packages/starccato/)

# starccato (Stellar Core Collapse GW generator)

Starccato is a fast stellar core-collapse gravitational wave generator.

## Installation

```
pip install starccato
```

## Training with starccato

Train the model with the following command:
```bash
starccato_train --outdir weights/ --epochs 8
```

From within python:
```python
import starccato
from starccato.training import train


train(outdir="weights/", epochs=128)
starccato.generate_signals(n=10, weights_file="weights/generator_weights.pth")

```


## Development

```
git clone https://github.com/tarin-e/starccato.git
cd starccato
pip install -e ".[dev]"
pre-commit install
```

Ensure unit tests are passing locally and on the CI!
```
pytest tests/
```

## Releasing to PyPI

1. Manually change the version number in `pyproject.toml`  (has to be higher than previous)
1. Create a tagged commit with the version number
2. Push the tag to GitHub

```
git tag -a v0.1.0 -m "v0.1.0"
git push origin v0.1.0
```