semvec/pypi-packages huggingface dataset:
pylxd 2.3.7
python library for LXD
Requires Python: >=3.10

pylxd
~~~~~

.. image:: http://img.shields.io/pypi/v/pylxd.svg
    :target: https://pypi.python.org/pypi/pylxd
.. image:: https://github.com/canonical/pylxd/actions/workflows/tests.yml/badge.svg
    :target: https://github.com/canonical/pylxd
.. image:: https://codecov.io/github/canonical/pylxd/coverage.svg?branch=main
    :target: https://codecov.io/github/canonical/pylxd
.. image:: https://readthedocs.org/projects/pylxd/badge/?version=latest
    :target: https://pylxd.readthedocs.io/en/latest/?badge=latest

A Python library for interacting with the LXD REST API.

Installation
=============
.. code-block:: console

  # Create a virtual environment
  python3 -m venv myvenv
  cd myvenv

  # Activate the virtual environment
  . bin/activate
  # Install pyLXD in it
  pip install pylxd

Bug reports
===========

Bug reports can be filed on the `GitHub repository
<https://github.com/canonical/pylxd/issues/new>`_.

Support and discussions
=======================

We use the `LXD category on Ubuntu's Discourse
<https://discourse.ubuntu.com/c/lxd/126>`_.

If you prefer live discussions, some of us also hang out in
`#lxd
<https://web.libera.chat/#lxd>`_ on irc.libera.chat.

LXD Documentation: `https://documentation.ubuntu.com/lxd/en/latest/
<https://documentation.ubuntu.com/lxd/en/latest/>`_

PyLXD API Documentation: `https://pylxd.readthedocs.io/en/latest/
<https://pylxd.readthedocs.io/en/latest/>`_

Contributing to pyLXD
=====================

If you wish to contribute to pyLXD please read the `Contributing Guide
<https://pylxd.readthedocs.io/en/latest/contributing.html>`_, particularly
around unit tests, integration tests and signing commits.
fense_logger 7.0.0
Common thefense Custom Logging to OpenSearch or Console or Rotating File
Requires Python: >=3.12

# Fense_Logger

Fense-Logger is a python library for logging in various targets like console, opensearch, file or mysql

## Installation

Use the package manager [pip] to install fense-logger

```bash
pip install fense-logger
```

## Usage

from fenselogger.common.logconfig import LoggerConfig
from fenselogger.core import ExtraLog, LogManager

cfg = LoggerConfig()
cfg.add_target("console", LoggerConfig.make_console(enabled=True))
cfg.add_target("file", LoggerConfig.make_file(log_dir="./logs", filename="app.log", enabled=True))
cfg.add_target("opensearch",LoggerConfig.make_opensearch(host="https://logging.testorg.com",port=9200,user="username",password="pwd",index="indexname",enabled=False,),)

log_manager = LogManager(cfg)
logger = log_manager.get_logger()

one = ExtraLog()
one.tenant_id = "tenA11"
one.correlation_id = 11
one.customer_name = "Sun Systems"
one.provider_name = "Fortuna Cysec"
one.key_data["Status"] = "Queued"
one.key_data["Something"] = "Another things"

logger.info("Queue Completed",extra={"extra": one},)

two = ExtraLog()
two.tenant_id = "ten22"
two.correlation_id = 12
two.customer_name = "Micros"
two.provider_name = "Fortuna Cysec"
logger.debug("Dicsovery Scanning Started",extra={"extra": two},)

logger.error("Queue Error",extra={"extra": one},)
logger.warning("FK error found",extra={"extra": two},)

log_manager.stop()

## Contributing

Pull requests are welcome. For major changes, please connect to main contributor to discuss and change

Please make sure to update tests as appropriate

## License

For internal usage of thefense Platform
smart-energy-manager-lib 1.2.0
Generic library for energy management and peer-to-peer trading
Requires Python: >=3.8
Keywords: energy solar renewable trading p2p

# Smart Energy Manager Library

Generic Python library for energy management and peer-to-peer trading.

## Installation
```bash
pip install smart-energy-manager-lib
```

## Quick Start
```python
from smart_energy_manager_lib import EnergyAccount

account = EnergyAccount("USER001", "John", generated=200, consumed=100)
print(f"Surplus: {account.calculate_surplus()} kWh")
```

## Features

- Energy account management
- Surplus/deficit calculations
- P2P energy trading
- Carbon offset tracking
- Solar generation estimation

## License

MIT
textx-ls-server 0.3.0
a language server for domain specific languages based on textX
Requires Python: >=3.8
Keywords: textX, DSL, domain-specific languages, language server protocol, pygls

# _textX-LS-server_

_textX-LS-server_ project is a thin layer around _[textX-LS-core](https://github.com/textX/textX-LS/textX-LS/core)_
and uses _[pygls](https://github.com/openlawlibrary/pygls)_ to expose all functionalities over
_[Language Server Protocol](https://microsoft.github.io/language-server-protocol/specification)_.
textx-ls-core 0.3.0
a core language server logic for domain specific languages based on textX
Requires Python: >=3.8
Keywords: textX, DSL, domain-specific languages

# _textX-LS-core_

_textX-LS-core_ project contains all logic for providing features like:

- _Code completion_
- _Code lens_
- _Find all references_
- _Go to definition_
iqm-qiskit-qir 0.9.0
Qiskit to QIR translator
Requires Python: <3.14,>=3.10

# qiskit-qir

Qiskit to QIR translator.

## Example

```python
from qiskit import QuantumCircuit
from qiskit_qir import to_qir_module

circuit = QuantumCircuit(3, 3, name="my-circuit")
circuit.h(0)
circuit.cx(0, 1)
circuit.cx(1, 2)
circuit.measure([0,1,2], [0, 1, 2])

module, entry_points = to_qir_module(circuit)
bitcode = module.bitcode
ir = str(module)
```

## Installation

Install `qiskit-qir` with `pip`:

```bash
pip install qiskit-qir
```
> Note: this will automatically install PyQIR if needed.

## Development

### Install from source

To install the package from source, clone the repo onto your machine, browse to the root directory and run

```bash
pip install -e .
```

### Tests

First, install the development dependencies using

```bash
pip install -r requirements_dev.txt
```

To run the tests in your local environment, run

```bash
make test
```

To run the tests in virtual environments on supported Python versions, run

```bash
make test-all
```

### Docs

To build the docs using Sphinx, run

```bash
make docs
```
pcntoolkit 1.1.2
Predictive Clinical Neuroscience Toolkit
Requires Python: <3.13,>=3.10

# Predictive Clinical Neuroscience Toolkit
Predictive Clinical Neuroscience software toolkit (formerly nispat). 

A Python package for normative modelling, spatial statistics and pattern recognition.

# IMPORTANT 
## Deprecation warning

This is PCNtoolkit version 1.X.X, released originally in June 2025. Any scripts, models, and results created with version 0.X.X are **not compatible** with this and future versions of the toolkit. 

To use the models created with versions 0.35 and earlier, please install the appropriate version using `pip install pcntoolkit==0.35`, or replace 0.35 with your desired version. The old version of the toolbox is also still available on [GitHub](https://github.com/amarquand/PCNtoolkit/tree/v0.35).

## Installation

```bash
pip install pcntoolkit
```

## Documentation

See the [documentation](https://pcntoolkit.readthedocs.io/en/latest/) for more details.

Documentation for the earlier version of the toolbox is available [here](https://pcntoolkit.readthedocs.io/en/v0.35/)

## Example usage

```python
from pcntoolkit import {load_fcon, BLR, NormativeModel}

fcon1000 = load_fcon()

train, test = fcon1000.train_test_split()

# Create a BLR model with heteroskedastic noise
model = NormativeModel(BLR(heteroskedastic=True), 
                       inscaler='standardize', 
                       outscaler='standardize')

model.fit_predict(train, test)
```
arkindex-cli 0.4.13
Arkindex CLI client easy and sexy to use
Requires Python: >=3.10
Keywords: python

# Arkindex CLI

Documentation for users is available in the [docs](./docs) folder, and online as [cli.arkindex.org](https://cli.arkindex.org).

## Dev setup

Requirements:
- Python 3.7+

```console
mkvirtualenv cli
pip install -e .
arkindex -h
```

### Unit tests

Tox is used on this project to run all unit tests:

```console
pip install tox
tox
```

### Linting

We use [pre-commit](https://pre-commit.com/) to check the Python source code syntax of this project.

To avoid superfluous commits, always run pre-commit before committing.

To do that, run once :

```
pip install pre-commit
pre-commit install
```

The linting workflow will now run on modified files before committing, and may fix issues for you.

If you want to run the full workflow on all the files: `pre-commit run -a`.

### Documentation

Please keep the documentation updated when modifying or adding commands.

It's pretty easy to do:

```
npm install
npm antora antora-playbook.yml
```

You can then write in Asciidoc in the relevant `docs/*.adoc` files, and see output on the specified html file.
aiotrenergy 0.0.9
Async python wrapper for tr.energy api
Requires Python: <4.0,>=3.10

# Aiotrenergy
Asyncio library for interacting with the [Trenergy](https://tr.energy/) API.


## Installation
`pip install aiotrenergy`


## Usage
```python
from aiotrenergy import TrenergyClient
from aiotrenergy.enums import ConsumptionType


client = TrenergyClient("your_api_key", "https://nile-core.tr.energy/api/consumers")  # default url is https://core.tr.energy/api/

# Show account information
account = await client.account.show()
print(account)

# Transit wallets usage (https://tr.energy/ru/consumers/faq//#faq10)
consumer_create_response = await client.consumers.create(
    15,
    "TY3dRk4eQ75dCrW7tUcCzggU9rnz4V111",
    False,
    ConsumptionType.STATIC,
    200000,
    "test"
)
await client.consumers.activate(consumer_create_response.data.id)
```

## To do
### Fixes
client.consumers.toggle_auto_renewal returns 422 with no error message... (on params -> True, [54])
### Tests
### Docs