semvec/pypi-packages huggingface dataset:
poaster 1.5.0
Minimal, libre bulletin board for posts.
Requires Python: >=3.9

# poaster

---

[![builds.sr.ht status](https://builds.sr.ht/~loges/poaster.svg)](https://builds.sr.ht/~loges/poaster?)
[![PyPI - Version](https://img.shields.io/pypi/v/poaster.svg)](https://pypi.org/project/poaster)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)

> Minimal, libre bulletin board for posts.

You can see a simple demo of poaster [here](https://poaster.loganconnolly.com).

## Features

- Display bulletin posts to all users.
- Create, update, and delete posts as authenticated user.
- Manage posts through web app and JSON API.
- Offer CLI for managing users and app state.
- Expose configuration options through environment variables.

## Roadmap

- Refined access control (admin, members, public).
- Add markdown support for post content.

## Quickstart

Install package:

```console
pip install poaster
```

Initialize application:

```console
poaster init
```

Add a user:

```console
poaster users add
```

Launch application server:

```console
poaster run
```

## Configuration

You can configure parts of the application in the shell environment. Here's an example `.env`:

```shell
# Logging
LOG_LEVEL="info"

# Database
DB_PATH="/./poaster.db"

# Security
SECRET_KEY="<generated-when-initializing-app>"
SECRET_KEY_N_BYTES=32
ALGORITHM="HS256"

# Theming
TITLE="poaster"
COLOR_DANGER="#FF595E"
COLOR_INFO="#1982C4"
COLOR_PRIMARY="#6A4C93"
COLOR_SUCCESS="#8AC926"
COLOR_WARINING="#FFCA3A"
```

## Development

The easiest way to develop locally with `poaster` is to use [hatch](https://hatch.pypa.io/latest/). With `hatch`, you will have access to important helper scripts for running locally, linting, type-checks, testing, etc.

### Testing

Lint and check types with:

```console
hatch run check
```

Format code with:

```console
hatch run format
```

Run test suite and report coverage with:

```console
hatch run cov
```

### Database Management

To upgrade the local database to latest schema, run:

```console
hatch run db:upgrade
```

Now that the tables are created, you can add fixtures:

```console
hatch run db:fixtures
```

If you add or update a table, you can generate a migration script by running:

```console
hatch run db:migration
```

If the migration script wasn't generated, check to see if you imported the model to [env.py](src/poaster/migrations/env.py).

### Local Server

Run the application server locally with:

```console
hatch run dev
```

The server should reload on changes to the source code.

## License

`poaster` is distributed under the terms of the [AGPLv3](https://spdx.org/licenses/AGPL-3.0-or-later.html) license.
vulqano 0.1.2
Compiler for quantum algorithms
Requires Python: >=3.8

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

VulQano
=======


The VulQano library enables the compilation of quantum circuits to produce equivalent circuits — implementing the same quantum algorithm — that can be executed on a noisy target machine with minimal expected infidelity.

This compilation process is hardware-aware: any gate set can be implemented, and the expected infidelity accounts for specific sources of error on the target machine, including gate infidelity and crosstalk.

Equivalent circuits are generated by replacing sub-circuits with equivalents listed in customizable set of equivalences.

The compilation is approached as a many-body problem: circuits are mapped to many-body states, and the expected infidelity is represented as a Hamiltonian. Techniques such as simulated annealing are then applied to optimize the circuits. Additionally, quantum optimization techniques like quantum annealing can be utilized. The corresponding quantum dynamics are simulated through the Python library qtealeaves.


Version 0.1.0 of Vulqano has been developed in the context of the European Project [EuRyQa](https://www.euryqa.eu/) at the [University of Padova](https://www.unipd.it/en/).



Environment variables
=====================

The discrete rotation gates involved in the compilation include all the unitaries `RZ(4pi/2^n)` with `n` up to the environment variable `R_MAX_VULQANO`. Default is 16.


Documentation
=============

[Here](https://qpd.baltig-pages.infn.it/vulqano/)
is the documentation. The documentation can also be built locally via sphinx.


License
=======

The project ``vulqano`` is hosted at the repository
``https://baltig.infn.it/qpd/vulqano``,
and is licensed under the following license:

[Apache License 2.0](LICENSE)

The license applies to the files of this project as indicated in the header of each file, but not its dependencies.


Examples
=========

Examples for how to use the python module can be found in the repository at ``https://baltig.infn.it/qpd/vulqano``.


Installation
============

Installation via pip
--------------------------

The package is available via PyPi and `pip install vulqano`.
After cloning the repository, an local installation via pip is
also possible via `pip install .`.

Dependencies
------------

The python dependencies can be found in the [``requirements.txt``](requirements.txt)
and are required independently of the use-cases. `qmatchatea` is an optional dependency and is required to run the `circuit_tester` module.
flake8-thoughtful 0.1.0
Pre Commit hook for all Thoughtful checks.
Requires Python: >=3.9
Keywords: flake8_thoughtful

Flake9 Thoughtful Hook
======================

Description
-----------
A pre-commit hook that runs Thoughtful pre-commit checks for common errors in the codebase. It is built as a flake8 plugin to ensure code quality and consistency.

Documentation
-------------
For more detailed information, refer to the `T Bug Catcher Documentation <https://www.notion.so/thoughtfulautomation/T-Bug-Catcher-Hook-fb96897875ce4a0fa689911aea35af3d?pm=c>`_.

Automations
-----------
The following automations are integrated with the Flake8 Thoughtful Hook:
- **flake8**: Used for linting and enforcing coding standards.

Preflight
---------
To configure the Flake8 Thoughtful Hook, follow these steps:

1. Add the Flake8 Thoughtful Hook to the ``additional_dependencies`` in the ``flake8`` hook section of your ``pre-commit-config.yaml`` file.

File Descriptions
-----------------
The following table describes the purpose of each file included in the project:

.. list-table:: 
   :header-rows: 1

   * - File
     - Purpose
   * - `flake8_thoughtful.py`
     - The main plugin file providing the entry point for flake8.
   * - `.pre-commit-config.yaml`
     - Configuration file that defines the checks performed during pre-commit.
   * - `bitbucket-pipelines.yaml`
     - Configuration file for Bitbucket pipelines; runs pre-commit checks and handles deployment to PyPI.
   * - `setup.py`
     - Contains the package metadata and dependencies for the T Bug Catcher Hook.
   * - `README.md`
     - The documentation file for the plugin, providing usage instructions and other relevant information.