semvec/pypi-packages huggingface dataset:
baryon-cycle 0.0.1
BAGS: Revealing baryon cycle around galaxies with stacking analysis
Requires Python: >=3.12

<div align="center">
  <img width="1024px" src="https://raw.githubusercontent.com/ChenYangyao/baryon-cycle/master/docs/site-data/cover-github.jpg" alt="BAGS: Revealing baryon cycle around galaxies with stacking analysis"/>
</div>

[![Last commit](https://img.shields.io/github/last-commit/ChenYangyao/baryon-cycle/master)](https://github.com/ChenYangyao/baryon-cycle/commits/master)
[![Workflow Status](https://img.shields.io/github/actions/workflow/status/ChenYangyao/baryon-cycle/run-test.yml)](https://github.com/ChenYangyao/baryon-cycle/actions/workflows/run-test.yml)
[![MIT License](https://img.shields.io/badge/License-MIT-blue)](https://github.com/ChenYangyao/baryon-cycle/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/baryon-cycle)](https://pypi.org/project/baryon-cycle/)

The package holds the codes and data products for the BAGS project

## Publications 

- Chengyu Ma, Yangyao Chen, Enci Wang et al. 2025 (Paper-I; arXiv ???; submitted to ???).

## Installation

To install the package, run:
```bash
pip install baryon-cycle
```
Alternatively, you can clone the repository and install the package locally via `pip install -e /path/to/the/repo`.

## Codes and data products for the papers

- Paper-I: [docs/2026-BAGS-method/](docs/2026-BAGS-method/)


## For developers

### Contribute to the project

Pull requests are welcome. For any changes, start a pull request to the ``dev`` branch and we will review it.

## For users

### Citation

We ask the users to cite the paper(s) when using the package (code or data) in their research.

Users using specific module/code sample should also follow the copyright header in the source files.

### Issues

Any issue is welcomed. If you have any question or suggestion, please open an issue on Github and we will provide a reply as soon as we can. You are also welcomed to contact any of the authors of the paper directly through email (see below for the contact information).

## Contacts

- Chengyu Ma (3065616846@qq.com)
- Yangyao Chen (yangyaochen.astro@foxmail.com)
- Enci Wang (ecwang16@ustc.edu.cn)
isa-common 0.3.1
Shared Python infrastructure library for isA platform
Requires Python: >=3.8

# isA Common

Shared Python infrastructure library for the isA platform.

## Overview

`isa-common` provides Python client libraries and utilities for interacting with various infrastructure services in the isA Cloud platform, including:

- **DuckDB Client** - Analytics database integration
- **Loki Client** - Log aggregation and querying
- **MinIO Client** - Object storage operations
- **MQTT Client** - Message broker for IoT
- **NATS Client** - Cloud-native messaging system
- **Redis Client** - Caching and data structures
- **Supabase Client** - Backend-as-a-Service integration

## Installation

Install from PyPI:

```bash
pip install isa-common
```

## Quick Start

### DuckDB Client Example

```python
from isa_common.duckdb_client import DuckDBClient

client = DuckDBClient(host="localhost", port=50051)
client.connect()

# Execute query
result = client.execute_query("SELECT * FROM my_table")
print(result)
```

### NATS Client Example

```python
from isa_common.nats_client import NATSClient

client = NATSClient(host="localhost", port=50054)
client.connect()

# Publish message
client.publish("my.subject", b"Hello World")

# Subscribe to subject
messages = client.subscribe("my.subject")
```

### MinIO Client Example

```python
from isa_common.minio_client import MinIOClient

client = MinIOClient(host="localhost", port=50052)
client.connect()

# Upload file
client.put_object("my-bucket", "file.txt", b"file contents")

# Download file
data = client.get_object("my-bucket", "file.txt")
```

## Features

- **gRPC-based** communication with backend services
- **Service Discovery** integration with Consul
- **Automatic Reconnection** with configurable retry policies
- **Type Safety** with Pydantic models
- **Comprehensive Examples** included in the package

## Requirements

- Python 3.8+
- grpcio >= 1.50.0
- pydantic >= 2.0.0
- tenacity >= 8.0.0

## Documentation

For detailed documentation and more examples, see:
- [DuckDB Client Examples](examples/duck_client_examples.py)
- [Loki Client Examples](examples/loki_client_examples.py)
- [MinIO Client Examples](examples/minio_client_examples.py)
- [MQTT Client Examples](examples/mqtt_client_examples.py)
- [NATS Client Examples](examples/nats_client_examples.py)
- [Redis Client Examples](examples/redis_client_examples.py)
- [Supabase Client Examples](examples/supa_client_examples.py)

## Development

Install development dependencies:

```bash
pip install isa-common[dev]
```

Run tests:

```bash
pytest
```

## License

Copyright © 2024 isA Platform

## Support

For issues and questions, please visit: https://github.com/isa-platform/isA_Cloud