semvec/pypi-packages huggingface dataset:
supply-demand 0.1.1
Functional dependency paradigm
Requires Python: >=3.7
Keywords: Supply-Demand, demand, functional, supply

# supply-demand

[![PyPI version](https://img.shields.io/pypi/v/supply-demand.svg)](https://pypi.org/project/supply-demand/)
[![License](https://img.shields.io/pypi/l/supply-demand.svg)](LICENSE)

A Python library for **dependency orchestration** and “demand/supply” resolution (function DI).  
Inspired by advanced dependency-injection/inversion control, it lets you register “supplier” functions by key/type, and lets any supplier **demand** values from others—allowing composition, overrides, and dependency graphs.

---

## Features

- Register “suppliers” (functions) for different types/keys
- Compose suppliers & override them dynamically
- Pass context (scope) through demands
- Supports both, **async** and sync suppliers
- Auto-manages dependency graph and supplier registry merging

---

## Installation

```bash
pip install supply-demand
```
or

```bash
python -m pip install supply-demand
```
or

```bash
python3 -m pip install supply-demand
```

---

## Quick Start

```python
from supply_demand import supply_demand
import asyncio

async def value_supplier(data, scope):
    return 42

async def root_supplier(data, scope):
    answer = await scope.demand({"type": "value"})
    print("Supply chain returned:", answer)

suppliers = {"value": value_supplier}
asyncio.run(supply_demand(root_supplier, suppliers))
```

---

## Example: Dependency Chain

```python
async def A(data, scope):
    return 1

async def B(data, scope):
    a_val = await scope.demand({"type": "A"})
    return a_val + 5

async def root(data, scope):
    result = await scope.demand({"type": "B"})
    print("Result:", result)

suppliers = {"A": A, "B": B}
asyncio.run(supply_demand(root, suppliers))
```

_Output: `Result: 6`_

---

## API

### supply_demand(root_supplier, suppliers)

- **root_supplier:** Callable `(data, scope)`. The entry point.
- **suppliers:** Dict of `{type: supplier_func, ...}`.

### context.demand(props)

- **props["type"]** — The supplier type to demand.
- Can override suppliers, pass data, etc.

---

## Advanced

Supports registry extension, override, additive/clear logic via:

```python
scope.demand({
  "type": "X",
  "suppliers": {"add": {"X": custom_x_supplier}}
})
```

---

## License

MIT
scfitpy 0.1.11
Add your description here
Requires Python: >=3.10

# scfitpy
for "Efficient spectrum analysis for multi-junction nonlinear superconducting circuit"
https://doi.org/10.48550/arXiv.2503.10202

## What's this?

![Image of peak trace and flow of the peak trace program.](./images/image.png)
The extraction of transition frequencies from a spectrum has conventionally relied on empirical methods, and particularly in complex systems it is a time-consuming and cumbersome process. To address this challenge, we establish an semi-automated efficient and precise spectrum analysis method. It, at first, employs image processing methods to extract transition frequencies, subsequently estimates Hamiltonians of superconducting quantum circuit containing multiple Josephson junctions. Additionally, we determine the suitable range of approximations in simulation methods, evaluating the physical reliability of analyses.

## Usage

### Installation

- via github
  1. `pip install "scfitpy[cupy] @ git+https://github.com/AkiyoshiTomonaga/scfitpy.git"`
- local install
  1. `git clone <this repo>`
  1. `pip install .[cupy]`
     - If you don't have a cuda environment, use `pip install .` instead. It doesn't install `cupy`.
- for development
  1. `git clone <this repo>`
  1. `uv sync --dev --extra cupy`


### Advanced Usages

- `./notebooks/001_PeakTrace.ipynb`
- `./notebooks/101_RabiFit.ipynb`
- `./notebooks/102_4JJ_CircFit.ipynb`: TBD
- `./notebooks/201_RabiSpaceCheck.ipynb`: TBD
- `./notebooks/202_QspaceCheck.ipynb`: TBD
- `./notebooks/assets/*`: experimental data to be processed
- `notebooks/outs/*`: processed data

See the [./notebooks](notebooks) dir.
Each notebook corresponds to each step in the paper.


## Acknowledgements

- https://doi.org/10.48550/arXiv.2503.10202

This work was supported by the Japan Society for the Promotion of Science (JSPS) KAKENHI (Grant Numbers JP22K21294 and JP23K13048).

## LICENSE

See the <LICENSE> file.

## Author information

The codes in this repository are written by [Akiyoshi Tomonaga](https://github.com/AkiyoshiTomonaga) and [Kosuke Mizuno](https://github.com/KosukeMizunoAIST).
mautrix-telegram 0.15.3
A Matrix-Telegram hybrid puppeting/relaybot bridge.
Requires Python: ~=3.10

# mautrix-telegram
![Languages](https://img.shields.io/github/languages/top/mautrix/telegram.svg)
[![License](https://img.shields.io/github/license/mautrix/telegram.svg)](LICENSE)
[![Release](https://img.shields.io/github/release/mautrix/telegram/all.svg)](https://github.com/mautrix/telegram/releases)
[![GitLab CI](https://mau.dev/mautrix/telegram/badges/master/pipeline.svg)](https://mau.dev/mautrix/telegram/container_registry)
[![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)

A Matrix-Telegram hybrid puppeting/relaybot bridge.

## Sponsors
* [Joel Lehtonen / Zouppen](https://github.com/zouppen)

## Documentation
All setup and usage instructions are located on
[docs.mau.fi](https://docs.mau.fi/bridges/python/telegram/index.html).
Some quick links:

* [Bridge setup](https://docs.mau.fi/bridges/python/setup.html?bridge=telegram)
  (or [with Docker](https://docs.mau.fi/bridges/general/docker-setup.html?bridge=telegram))
* Basic usage: [Authentication](https://docs.mau.fi/bridges/python/telegram/authentication.html),
  [Creating chats](https://docs.mau.fi/bridges/python/telegram/creating-and-managing-chats.html),
  [Relaybot setup](https://docs.mau.fi/bridges/python/telegram/relay-bot.html)

### Features & Roadmap
[ROADMAP.md](https://github.com/mautrix/telegram/blob/master/ROADMAP.md)
contains a general overview of what is supported by the bridge.

## Discussion
Matrix room: [`#telegram:maunium.net`](https://matrix.to/#/#telegram:maunium.net)

Telegram chat: [`mautrix_telegram`](https://t.me/mautrix_telegram) (bridged to Matrix room)

## Preview
![Preview](preview.png)