semvec/pypi-packages huggingface dataset:
hyprwallpaper 1.2.0
wallpaper management program for hyprland
Requires Python: >=3.8

# What is this?
- **hyprwallpaper** is a simple terminal application written for linux distributions with the hyprland environment set up along with hyprpaper as the wallpaper manager.
- This simple program written in python allows the user the quickly switch between different wallpapers without having to go into their config file to change it.

# How do i use it?
## Dependencies
- one of the dependencies of this program is [mpvpaper](https://github.com/GhostNaN/mpvpaper) if you would like to be able to have video wallpapers
- another dependency is [hyprpaper](https://wiki.hyprland.org/Hypr-Ecosystem/hyprpaper/)

## Installation
- download the program with pip - [pypi project site](https://pypi.org/project/hyprwallpaper/)
```
pip install hyprwallpaper
```
- make sure your config files are located in /home/*your username*/.config/hypr/
```
python3 -m hyprwallpaper
```
- just follow the simple prompts given in the program
- if you have a GUI file manager like Dolphin, you can just drag and drop the picture you want as your wallpaper into the terminal, which will write out the entire path of the image automatically (*on most terminals, at least*)
- after you are done you can log out and back in to see yrou changes. *logging out is usually down with Ctrl+m in hyprland*

# features
- Can modify your hyprpaper.conf and hyprland.conf files to change your image wallpaper or video wallpaper
- ensures wallpaper program runs in the background

# message
- this is a small beginner project I made for myself to make switching between my wallpapers faster. I am aware that it is very elementary and can use a lot more improvements, which I hope to add in the future as I become better at programming
- any suggestions are welcome :) I will try my best to address them
cjh-project-builder 0.1.2
A CLI tool for generating FastAPI project structure
Requires Python: <4.0,>=3.11

# cjh-project-builder

![Python](https://img.shields.io/badge/Python-3.8%2B-blue)
![License](https://img.shields.io/badge/License-MIT-green)

## 개요

**cjh-project-builder**은 FastAPI 애플리케이션에서 프로젝트 구조 생성을 자동화해주는 명령어 기반 도구(CLI)입니다. 이 도구는 새로운 모듈을 생성할 때 디렉토리, 파일, 템플릿을 표준화된 형식으로 자동으로 생성하여, 시간을 절약하고 프로젝트 내에서 일관성을 유지할 수 있도록 도와줍니다.

FastAPI 백엔드 모듈을 손쉽게 추가할 수 있도록 설정된 기본 구조를 제공하며, 반복적인 작업을 간편하게 처리할 수 있습니다.

## 주요 기능

- FastAPI 프로젝트 모듈 구조를 자동으로 생성
- 디렉토리 및 파일 템플릿 지원
- 사용하기 쉬운 CLI 인터페이스 제공
- 구조 커스터마이징 가능

## 설치 방법

### Poetry로 설치

[Poetry](https://python-poetry.org/)를 통해 **cjh-project-builder**을 설치하려면, 아래 명령어를 사용하세요:

```bash
poetry add create-structure user
```

## 사용법
설치 후, create-structure user 명령어를 사용하여 새로운 모듈 구조를 생성할 수 있습니다.

예시
user라는 이름의 새로운 모듈 구조를 생성하려면 다음 명령어를 입력합니다:

```bash
cjh-project-builder create-structure user
```

이 명령어를 실행하면 다음과 같은 디렉토리 구조가 생성됩니다:
```css
src/
└── app/
    └── user/
        ├── __init__.py
        ├── routes.py
        ├── container.py
        ├── domain/
        │   ├── __init__.py
        │   └── user_entity.py
        ├── endpoint/
        │   ├── __init__.py
        │   └── user.py
        ├── facades/
        │   ├── __init__.py
        │   └── user_facade.py
        ├── model/
        │   ├── request/
        │   │   ├── __init__.py
        │   │   └── user_request.py
        │   └── response/
        │       ├── __init__.py
        │       └── user_response.py
        ├── repository/
        │   ├── __init__.py
        │   └── user_repository.py
        ├── services/
        │   ├── __init__.py
        │   └── user_service.py
        └── usecase/
            ├── __init__.py
            └── user_usecase.py
```

## CLI 명령어
create-structure
```bash
cjh-project-builder create-structure <module_name>
```
module_name: 생성할 모듈의 이름을 입력합니다 (예: user, order 등).

## 디렉토리 구조 설명
create-structure user을 사용하여 생성된 모듈 구조는 FastAPI 애플리케이션을 위한 기본적인 구성입니다. 각 모듈에는 도메인 로직, 서비스, 레포지토리, 엔드포인트 등이 포함됩니다.
```bash
src/app/<module_name>/
├── __init__.py
├── routes.py
├── container.py
├── domain/
├── endpoint/
├── facades/
├── model/
│   ├── request/
│   ├── response/
├── repository/
├── services/
└── usecase/
```
fasthare 1.0.4
Reduce QUBO/Hamiltonian (exact reduction). Source code for the paper 'FastHare: Fast Hamiltonian Reduction for Large-scale Quantum Annealing, IEEE Int. Conf. on Quantum Computing and Engineering (QCE) 2022' https://arxiv.org/abs/2205.05004
Requires Python: >=3.10

Python Interface for FastHare

Installation
------------
This requires Python 3.10+ and c++14

 - clone this repository
 - `pip install ./python_package`

Test
---------

```python
import fasthare as m
print("Using list of triples i, j, h_ij")
sk_ising = [(0, 1, -3)] # SK Hamiltonian: min - (-3 * x_0  * x_1 )
print(m.fasthare_reduction(sk_ising) )


# Or using the exp3.net in the "tests" folder
print("Reading triples i, j, h_ij from file")
rh, map, sign, time = m.fasthare_reduction(file ="exp3.net",alpha=0.2)
print(rh) 
print(map)
print(sign)
print(time)
```
Output

```Python
Using list of triples i, j, h_ij
([], [0, 0], [1, -1], 1.9e-05)
Reading triples i, j, h_ij from file
[(0, 1, 1.0), (0, 2, 3.0), (1, 2, 3.0)]
[2, 2, 2, 2, 2, 2, 2, 1, 0, 1]
[1, -1, -1, 1, 1, 1, 1, 1, 1, 1]
4.4e-05
```

The output is a tuple of <compressed_hamiltonian, spin_mapping, spin_sign, running_time>.

+ compressed_hamiltonian: triples of (i, j, h_ij)
+ spin_mapping: The ith entry indicates which spin in the compressed hamiltonian that the ith spin in the input Hamiltonian mapped to
+ spin_sign: The ith entry is -1 if the ith spin in the input Hamiltonian is reversed (+1 otherwise)
+ running_time: run time in second(s)

Explanation for the output of "exp3.net"



| <span>exp3</span>.net	|compressed_hamiltonian        |spin_mapping/spin_sign        |
|-----------------------|---------------------|-----------------|
| 10 14<br>0 1 -2<br>0 2 -4<br>1 2 2<br>1 3 -1<br>2 3 -6<br>3 4 3<br>4 5 4<br>4 6 4<br>5 6 -1<br>6 7 3<br>6 8 3<br>7 8 -1<br>7 9 3<br>8 9 2	|[(0, 1, 1.0),<br> (0, 2, 3.0),<br> (1, 2, 3.0)]   |[2, 2, 2, 2, 2, 2, 2, 1, 0, 1]<br>[1, -1, -1, 1, 1, 1, 1, 1, 1, 1]         |
| ...	|Compressed into the below Hamiltonian with $n'=3$ nodes and $m'=3$ edges.<br> $\displaystyle\min_{\mathbf{x}\in\{-1,+1\}^3} -[ s_0 s_1 + 3 s_0 s_2 + 3 s_1 s_2]$	  |  $s_8=  s_0'$<br>$s_9=  s_7=s_1'$<br>$s_6= s_5=s_4 =s_3 = - s_2 = -s_1 = s_0= s_2'$ <br>The qubits $s_1$ and $s_2$ are *flipped* before the compression.  

Remark: Since the version 1.0, the Hamiltonian will be compressed into a single node.