semvec/pypi-packages huggingface dataset:
sccircuitbuilder 0.0.3
A graphical user interface to create superconducting circuits intended to accompany scQubits
Requires Python: >=3.7
Keywords: cQED,circuit QED,quantum,quantum computing,superconducting circuits

# Superconducting Circuit Builder
This is a GUI for designing superconducting circuits in the lumped-element limit intended to accompany the Python package scQubits.

## Installation
`pip install sccircuitbuilder`

## Usage
Run `import sccircuitbuilder as sc`, then `sc.GUI()`. The elements used to build a circuit are
1) Capacitor
2) Inductor
3) Josephson Junction

Drag the icons from the toolbox onto the canvas to place down an element. Drag nodes together to connect them. Left-click on wires to add anchor points and drag 
the anchor points to guide the wires. Export the circuit to scqubits to diagonalize and simulate the circuit!

### Keyboard
* `Shift + Right Click` - add to selection
* `Shift + Right Drag` - add box to selection
* `Enter` on property entry box - change property

### Mouse
* `Left Button Drag` on whitespace - pan
* `Scroll Wheel` - zoom
* `Left Button Drag` on element/selected group - move selection
* `Right Button Drag` - box selection
* `Left Button Click` on element - rotate
* `Right Button Click` on element - select and show properties

![Screenshot showing usage](./demo/screenshot.png "screenshot")

## Features
* Split (reverse-join) nodes
* Delete elements
* Wire anchor points
* Undo / Redo
* Save / Open
* Export to scQubits circuit format
* Pre-made circuit library

## Future plans
* Offset charge / external flux
* Further integration with scqubits
* Accompanying tutorials

## Known issues
* Right click has no activation distance, so using a mouse will result in some dropped right clicks
* Sometime import/undo/redo (the memento-based functionalities) crash, but usually they seem to work 
* File save is not very inteligent and adds `.circuit` to the end of the filename regardless of whether it is already there
statute-utils 0.6.8
Philippine statutory law pattern matching and unit retrieval.
Requires Python: >=3.11,<4.0

# statute-utils

![Github CI](https://github.com/justmars/statute-utils/actions/workflows/main.yml/badge.svg)

Philippine statutory law pattern matching and unit retrieval; utilized in [LawSQL dataset](https://lawsql.com).

## Documentation

See [documentation](https://justmars.github.io/statute-utils).

## Development

Checkout code, create a new virtual environment:

```sh
poetry add statute-utils # python -m pip install statute-utils
poetry update # install dependencies
poetry shell
```

## Some unit patterns

```json title="Convention used when desiring to exclude appropriation laws."
{
  "units": [
    {
        "item": "Container 1",
        "content": "Appropriation laws are excluded.",
    }
  ]
}
```

```json title="Convention used when no content found."
UNITS_NONE = [
    {
        "item": "Container 1",
        "content": "Individual provisions not detected.",
    }
]
```

## Use in Datasette

### Add units to a database from a pre-made file

Consider an example `db.sqlite`:

```py title="Assumes path-to-file.yml exists"
>>> from sqlite_utils import Database
>>> from statute_utils import Statute
>>> f = Path().joinpath(path-to-file.yml)
>>> db = Database('db.sqlite')
>>> db["statutes"].insert(Statute.from_file(f).make_row())
# this will contain an 'html' column containing a semantic tree structure that can be styled via css
```

### Copy html/css files

1. `tree.html` - Tree-building macros (which can be used for creating an html tree to represent the statute)
2. `tree.css` - Sample css rulesets to use for the tree generated with the macros

Copy files to the Jinja environment where these can be reused:

```text
- /app
--|
  |--/static
      |--tree.css # copy it here
  |--/templates
      |--tree.html # copy it here
  |--db.sqlite
```

When datasette is served with:

```jinja
datasette serve db.sqlite --template-dir=app/templates/ --static static:app/static
```

It becomes possible to import the macros file into a future files:

```jinja title="app/templates/future.html"
{% from 'tree.html' import create_branches %}
{{ create_branches(units|from_json) }} {# note that from_json is custom filter added in the Datasette environment as a one-off plugin}
```

### Add filters / custom functions

Create a file in the plugins directory:

```text
- /app
- /app
--|
  |--/static
      |--tree.css
  |--/templates
      |--tree.html
  |--/plugins
      |--tree.py # new
  |--db.sqlite
```

When datasette is served with:

```jinja
datasette serve db.sqlite --plugins-dir=app/plugins/ {# plus the other arguments #}...
```

It becomes possible to use custom functions and filters found in `tree.py`.


## Changes

1. em / strong no longer with label
2. Need to add href on <a.label/>
3. `span.par-branch` converted to `a.par-branch`
4. <li#id> and <span#id> changed to <a[data-slug]/>
dup-hawk 0.0.12
Python CLI for marking duplicates submissions on GitHub.
Requires Python: >=3.10,<3.13

# dup_hawk

🦅 A bot the looks for duplicate issues on a GitHub repo, created especially for competitive security reviews. 

<!-- use html to import an image -->
<p align="center">
  <img src="./img/dups.png" alt="dup-hawk" width="500"/>
</p>


# Getting Started
## Requirements

- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
  - You'll know you did it right if you can run `git --version` and you see a response like `git version x.x.x`
- [Python](https://www.python.org/downloads/)
  - You'll know you've installed python right if you can run:
    - `python --version` or `python3 --version` and get an output like: `Python x.x.x`
- [pipx](https://pypa.github.io/pipx/installation/)
  - `pipx` is different from [pip](https://pypi.org/project/pip/)
  - You may have to close and re-open your terminal
  - You'll know you've installed it right if you can run:
    - `pipx --version` and see something like `x.x.x.x`
- [poetry](https://python-poetry.org/docs/)
  - You'll know you've installed it right if you can run `poetry --version` and get an output like `Poetry (version 1.4.2)`

## Installation

### pipx

```
pipx install dup_hawk
```

### From Source

```
git clone https://github.com/Cyfrin/dup-hawk
cd dup-hawk
pip install . -e
```

## Quickstart 

```
dup-hawk --help
```

To run the duplicate checker, run:

```
dup-hawk --git-repo-url {URL} --git-pat-token {PAT_TOKEN}
```

And you will have marked the issues on your github repo!

# Tests

```
poetry run pytest
```

## Integration tests

```
poetry run pytest -m ""
```

## Specific tests with pdb and stdout

```
poetry run pytest -k "test_mark_duplicates_from_dfs" --pdb -s
```

# Big TODO

Add mocking unit tests.
LiamHsieh-toolbox 0.3.4.7
Collections of Python utility, suppose to be built with Jonathan Carson but he left
Requires Python: >=3.10

# LiamHsieh toolbox
Author: Liam Hsieh  
Latest update: Dec 21, 2022

This package is a collection of Python utilities created for benefiting my development of prototypes/applications regarding data-driven decision science a bit easier. 

<!-- Activate the virtual environment (venv) you want with the installation of this package, then run the following command to install this package for your venv:  

```bash
pip install git+https://github.com/intel-sandbox/CnA-ODS-toolbox.git

```
or from downloaded project source code then unarchive (have to change to project root folder before running following command)
```bash
pip install -e .
```

The -e option is for editable install. It doesn’t make a copy of the code into the venv folder. Instead, it makes reference to where the code has been placed. -->
pyevspace 0.14.2
A Python 3-dimensional Euclidean vector space.
Requires Python: >=3.7

# PyEVSpace 0.14.2

[![Github test action](https://github.com/qbizzle68/pyevspace/actions/workflows/test-builds.yml/badge.svg)](https://github.com/qbizzle68/pyevspace/actions)
[![PyPi](https://img.shields.io/pypi/v/pyevspace?style=plastic)](https://pypi.org/project/pyevspace/#history)
![Supported Python versions](https://img.shields.io/pypi/pyversions/pyevspace?style=plastic)
[![License](https://img.shields.io/pypi/l/pyevspace?style-plastic)](https://opensource.org/licenses/MIT)

PyEVSpace is a Python Euclidean vector space package containing types
and methods for representing vector quantites and fasilitating rotating
them between reference frames. PyEVSpace is designed for 3-dimensional
space only, which allows for optimum speed since size checks do not
occur.


## Documentation

The full documentation of this project with both Python and C APIs can
be found [here](https://qbizzle68.github.io/pyevspace/html/index.html).

## Install

The python module can be installed with
```python
pip install pyevspace
```

Alternatively the repository can be downloaded or cloned using:
```bash
git clone https://github.com/qbizzle68/pyevspace.git
```
It can be used as is within Visual Studio, or built inplace using the
*setup.py* if needed.

## Usage

To use the module simply import the pyevspace module into your project:
```python
import pyevspace as evs
from math import pi

vec = evs.Vector(1, 2, 3)

rotatedVec = evs.rotateAxisTo(evs.X_AXIS, pi/2)
```

Matrices can be created from iterables, where each iterable represents
a row of the matrix
```python
import pyevspace as evs

mat = evs.Matrix((0, 0, 1), (0, -1, 0), (1, 0, 0))

rotatedVec = evs.rotateMatrixFrom(mat, Vector(1, 1, 1))
```

The Order and Angles types can be used to create an Euler rotation 
matrix. All twelve Euler rotations are already defined in the module,
so you shouldn't need to instantiate an Order object. The Angles
object holds the angles for each rotation in the Euler rotation, in
the order of the axis rotations (in radians).
```python
import pyevspace as evs

angs = Angles(1.1, 4.5, 3.14)
mat = getMatrixEuler(XYZ, angs)

rotatedVec = mat * Vector(1, 0, 2)
```

There are many methods that handle the rotations for you, check the
official documentation to learn more about them.

## Examples

### Examples of numeric operators
```python
v1 = Vector(1, 2, 3)
v2 = Vector(4, 5, 6)

print(v1 * 2)
# prints [2, 4, 6]

print(v1 + v2)
# prints [5, 7, 9]

print(v1 - v2)
# prints [-3, -3, -3]
```

### Examples of vector and matrix operators
```python
v1 = Vector(1, 2, 3)
v2 = Vector(4, 5, 6)
m1 = Matrix(Vector(4, 2, 3), Vector(8, 5, 2), Vector(4, 2, 1))

print(dot(v1, v2))
# prints 32.0

print(cross(v1, v2))
# prints [ -3.00000, 6.00000, -3.00000 ]

print(det(m1))
# prints -8.0

print(transpose(m1))
# prints 
# ([4, 2, 3],
# [8, 5, 2],
# [4, 2, 1])
```

## License
[MIT](https://choosealicense.com/licenses/mit/)
zxext 0.1.2
zhixuewang库的扩展包
Requires Python: >=3.8

# zxext
*智学网的补充库*

![](https://img.shields.io/badge/License-ASOUL-red) ![](https://img.shields.io/badge/Python-3.8+-green) ![](https://img.shields.io/pypi/v/zxext)

收录了一些智学网库里比较冷门的函数。

**一个版本仅对应一个智学网的版本！**



### 对应关系

|  zxext版本  | 对应zhixuewang版本 |
| :---------: | :----------------: |
| 0.1.0-0.1.1 |       1.1.12       |



## 支持的功能

1. 练习本功能（`workbook`）



## 问题和建议

如果您在使用的过程中遇到任何问题，欢迎前往 [Issue](https://github.com/anwenhu/zhixuewang/issues)提问
当然也可以加入这个QQ群讨论：862767072（备注：智学网扩展）



## 示例

```python
from zxext.workbook import Workbook # 导入练习本
from zhixuewang import * # 导入核心库

teacher = login("114514", "1919810")
wb = Workbook(teacher.get_session())
print(wb.search_press("人教"))
# >> 272
```



## 贡献

建议优先提交给`zhixuewang`库，除非是部分比较不常用的功能。