semvec/pypi-packages huggingface dataset:
sstc-dp 0.1.4
SSTC - SITES Data Portal toolbox
Requires Python: >=3.11,<4.0

![alt text](https://h24-original.s3.amazonaws.com/231546/28893673-EQhe9.png "SITES Spectral Thematic Center")
# Swedish Infrastructure for Ecosystem Science (SITES) - Spectral | Thematic Center (SSTC)
["SITES spectral"](https://www.fieldsites.se/en-GB/sites-thematic-programs/sites-spectral-32634403)


## Mantainers

* José M. Beltrán-Abaunza, PhD | Lund University, Department of Physical Geography and Ecosystem Science | SITES spectral Research Engineer


## Contributors

* Lars Eklundh, Professor | Lund University, Department of Physical Geography and Ecosystem Science | SITES spectral Coordinator

* José M. Beltrán-Abaunza, PhD | Lund University, Department of Physical Geography and Ecosystem Science | SITES spectral Research Engineer

* Shangharsha Thapa | Lund University, Department of Physical Geography and Ecosystem Science
uqo 0.0.2.6
Client of the optimization framework UQO
Requires Python: >=3.7

#UQO - You, Quantum and Optimization
---
UQO is an optimization framework developed by the [QAR-Lab of the LMU Munich](https://qar-lab.de). 

# Setup
---
To install UQO simply do:
```
   pip install uqo
   ```

To be able to connect to the UQO servers, you have to create a config object. There are two possibilities to do so:

1. Generate private/public keys

    UQO uses elliptic curve cryptography to securely communicate with the UQO servers. Therefore you have to generate your
    private and public key first, before you can start using UQO. This is done as follows:

    ```
      import os
      from uqo.generate_certificates import generate_certificates
      generate_certificates(os.path.dirname(os.path.realpath(__file__)))
    ```
    
    This will generate 3 folders ("certificates", "private_keys" and "public_keys") in your current working directory.
    The "certificates" folder is used as a temporary directory and should be empty after the process completed. You can
    safely delete this folder. 


2. Create the config object directly in the code:
   ```
   ip = "SERVER_IP:SERVER_PORT"
   token = "YOUR_TOKEN"
   private_key_file = "PATH_TO_YOUR_PRIVATE_KEY_FILE"
   config = Config(method="token", credentials=token, endpoint=ip, private_key_file=private_key_file)
   ```
   
   Replace "PATH_TO_YOUR_PRIVATE_KEY_FILE" with the actual path to the clien.key_secret file you generated in step 1.
3. Use a config file
   
   Create a config.json with the following structure:
    
   ```
   {
        "method": "token",
        "endpoint": "SERVER_IP:SERVER_PORT",
        "credentials": "YOUR_TOKEN",
        "private_key_file": "PATH_TO_YOUR_PRIVATE_KEY_FILE"
   }
   
   Replace "PATH_TO_YOUR_PRIVATE_KEY_FILE" with the actual path to the client.key_secret file you generated in step 1.

   
   ```
   You can then use this config file as follows:
    
   ```
   from uqo.client.config import Config
   config = Config(configpath="Path\to\the\configfile")
   ```
In the examples above please replace SERVER_IP and SERVER_PORT with the ip and port of the UQO server. Also replace YOUR_TOKEN with your personal UQO token.

###
Current State of UQO
---
Although UQO can already be used for a lot of tasks, it is still work in progress. You may very well run into problems where you 
would like to use a feature which has not yet been implemented or is not working as intended due to bugs. In this case please let me know
about the exact problem or the exact feature you want to use, so I can fix / implement it.

You find my E-mail at the bottom of this ReadMe.
###
FAQ
---
Required Python Version: >= 3.7

### Error messages while solving

If you try to solve a problem with UQO you might run into problems. Please consider updating ALL your python packages that are relevant for UQO. After you have done this, verify that your code is correct. If you still encounter problems, you can contact me (sebastian.zielinski@ifi.lmu.de) and I will try to help you with your problem.
event-simulate 1.1.2
模拟键盘,鼠标事件的Python包。可用于编写自动化程序 (如游戏外挂)。A Python package simulating keyboard and mouse events ,which can be used in automation programs.
Keywords: event,simulate,key,mouse,click,automation,键盘,鼠标,外挂

模块名称: event (切勿使用import event_simulate) !

简介
====

event-simulate是一个模拟键盘,鼠标事件的Python包, 可以模拟鼠标单击、双击, 键盘按下等各种操作,

打包成PyInstaller等exe文件时体积小巧。可用于编写自动化程序 (如游戏外挂等)。


所包含模块 Included modules: 
============================

event.key - 模拟键盘事件
""""""""""""""""""""""""
包含的函数 Functions:

keydown(keycode_or_keyname)::

    模拟键按下。
    keycode_or_keyname:按键名称或该按键的键码值

keypress(keycode_or_keyname, delay=0.05)::

    模拟按键。
    keycode_or_keyname:按键名称或该按键的键码值
    delay:键按下与释放之间的的间隔时间,间隔时间越小,按键速度越快。

keyup(keycode_or_keyname)::

    模拟键释放。
    keycode_or_keyname:按键名称或该按键的键码值


event.mouse - 模拟鼠标事件
""""""""""""""""""""""""""
包含的函数 Functions:

click()::

    模拟鼠标左键单击

dblclick(delay=0.25)::

    模拟鼠标左键双击

get_screensize()::

    获取当前屏幕分辨率。

getpos()::

    获取当前鼠标位置。
    返回值为一个元组,以(x,y)形式表示。

move(x, y)::

    模拟移动鼠标。
    与goto不同,move()产生一个鼠标事件。

right_click()::

    模拟鼠标右键单击。

wheel(delta)::

    模拟滚动鼠标滚轮。
	delta: 滚动的距离, 正值为向上滚动, 负值为向下滚动。

新增: leftdown(),leftup(),rightdown(),rightup(),middledown(),middleup()模拟鼠标按下和释放。



示例代码1:

.. code-block:: python

    #模拟按键Alt+F4关闭当前窗口
    from event.key import *
    keydown("Alt")
    keydown("f4")
    keyup("f4")
    keyup("alt")


示例代码2:

.. code-block:: python

    #使用Aero Peek预览桌面。(Win7及以上系统)
    from event import mouse
    x,y=mouse.get_screensize()
    mouse.move(x,y) #将鼠标移至屏幕右下角
    mouse.click() #模拟鼠标点击


新增功能 New Features: 

1.1.2: event.key模块新增了按键名, 兼容PyWinHook库。完善了示例:录制键鼠事件(包目录\\examples\\录制键鼠事件.py)

说明: 使用示例"录制键鼠事件.py" 需安装pywinhook库。

1.0.3:修复了调用API函数时出现 ``ValueError`` 的bug。

1.0.2:增加了示例:鼠标控制器(包目录\\examples\\mouseController.py)

源代码 Source: https://github.com/qfcy/Python/tree/main/event

作者 Author:

qfcy qq:3076711200 百度贴吧账号:qfcy\_

作者CSDN主页: https://blog.csdn.net/qfcy\_/
music-score 1.1.3
A program that using re module to analyze music score (simplified score).使用re模块解析曲谱(简谱)的程序。
Keywords: music,music score,song,winsound,声音

music_score - 使用re模块解析曲谱(简谱),winsound模块播放声音的程序。

包含的函数 Functions:

music()::

    使用re模块解析曲谱的生成器
    notation:一段简谱
    duration:一个音符播放的时间

示例代码:

.. code-block:: python

    import music_score,winsound
    # 曲谱
    my_music="123 3 3 345 5 5  54321"
    for freq,duration in music_score.music(my_music,250):
        winsound.Beep(freq,duration)

github上的源程序: https://github.com/qfcy/Python/blob/main/music.py

作者 Author: 七分诚意 qq:3076711200
catch-turtle 1.1.4
使用turtle模块制作的一款娱乐游戏。An entertainment game using module turtle.作者:qfcy
Keywords: python,turtle,game,catch

catch-turtle是使用turtle模块制作的一款娱乐游戏。

游戏玩法:运行catch_turtle模块目录下的catch_turtle.py, 或在命令行输入python -m catch_turtle,

将弹出一个窗口; 点击"开始游戏"按钮,开始游戏。


按↑,↓,←,→键移动玩家,使其触碰被追逐者。触碰即追逐成功，一次得10分,

追逐时，请小心红色的"敌人",触碰"敌人"即追逐失败。

触碰后,被追逐者将会回到原位。每得到40分升一级。

游戏结束后上一次的等级、最高分将会被保存,但分数不会保存,失败后分数清零。

附游戏截图:

.. image:: https://img-blog.csdnimg.cn/5c10d089caee4cdd8450d2a0ea0f116f.png
    :alt: 游戏开始界面

.. image:: https://img-blog.csdnimg.cn/f7461d3d9b8f43579a1a1015112d39f3.gif
    :alt: 游戏进行界面

.. image:: https://img-blog.csdnimg.cn/7147430023594c70b5b561bb3cfffa14.png
    :alt: 游戏结束界面

1.1.4版改进: 继续修复一些bug和错误, 游戏更加稳定。

源程序: 见 https://github.com/qfcy/Python/tree/main/catch_turtle 。

作者:qfcy 百度贴吧账号:qfcy\_

作者CSDN主页: https://blog.csdn.net/qfcy\_/
turtlestar 1.0.4
使用turtle模块画出动态星空的程序, 类似Windows内置的星空屏保。A program uses module turtle to draw dynamic stars, being similar to the built-in starry screen saver in Windows.
Keywords: turtle,star,turtlestar,graphics

简介
======

使用``turtle``模块画出动态星空的程序, 类似Windows内置的星空屏保。

A program uses module ``turtle`` to draw dynamic stars, being similar to the built-in starry screen saver in Windows.


github上的源码:https://github.com/qfcy/Python/blob/main/turtle/%E6%98%9F%E7%A9%BA.py

源码 (当前1.0.4版):

.. image:: https://img-blog.csdnimg.cn/bb668f75e54a48a3b11da36400cdece2.png
    :alt: 源码图片1暂无法显示

.. image:: https://img-blog.csdnimg.cn/6edc169b2cb44fc7b78ac17b82ec5f84.png
    :alt: 源码图片2暂无法显示

作者: 七分诚意 (百度贴吧账号: qfcy\_) qq:3076711200 邮箱:3076711200@qq.com

作者百度贴吧主页: https://tieba.baidu.com/home/main?id=tb.1.896a502c.wIgwfH33Qty4UGHwVc5N7w

作者CSDN主页: https://blog.csdn.net/qfcy\_/
zoom-select-image-component 0.0.7
Streamlit component that allows you to zoom and select parts of an image for further analysis.
Requires Python: >=3.7

# zoom-select-image-component

Streamlit component that allows you to select parts of an image by panning and zooming.

## Installation instructions

```sh
pip install zoom-select-image-component
```

## Usage instructions

```python
import streamlit as st

from PIL import Image
from zoom_select_image_component import zoom_select_image_component

@st.cache_resource
def load_image_as_pil(image_path: str):
    return Image.open(image_path)

image = load_image_as_pil('image.png')
rectangles = zoom_select_image_component(image, 'A')
```

The component takes the following arguments:
```
image: PIL.Image
    The image to display in the component.
    This should be referentially stable, otherwise there will be an noticeable delay each time your app runs.
    One way to achieve this is by loading it through a function decorated with @st.cache_resource.
key: str
    A key that identifies this instance of the component.
    Can be set to any value, as long as it's unique throughout the app.
    Changing this value on an existing instance will rerender the whole component and reset state.
rectangle_width: number
    The width of the zoom rectangle in image pixels.
rectangle_height: number
    The height of the zoom rectangle in image pixels.
```
It returns an array of selected rectangles.
Each rectangle is a dictionary with the following keys:
```
left: int
    number of horizontal pixels from top left corner of image to top left corner of rectangle
top: int
    number of vertical pixels from top left corner of image to top left corner of rectangle
width: int
    width of rectangle in pixels
height: int
    height of rectangle in pixels
is_enabled: bool
    whether the checkbox in the rectangle is checked or not
cropped_image: PIL.Image
    the part of the image covered by this rectangle
```

Look at the files `zoom_select_image_component/example.py` and `zoom_select_image_component/example_sa.py` for complete
usage examples.
The latter file runs the segment anything model on the selected parts of the image.

## Development instructions

Set `_RELEASE = False` in `__init__.py`.
Enter `zoom_select_image_component/frontend` and run `npm update` followed by `npm run start`.
In another terminal window, create a virtual environment by running `python -m venv venv`.
Run `. venv/bin/activate` and run `pip install -e .` to install this component as a local package.
Run `streamlit run zoom_select_image_component/example.py`.

## Deployment instructions

Set `_RELEASE = True` in `__init__.py`.
Run `npm run build` in `zoom_select_image_component/frontend`.
Create a Python wheel by running `pip wheel --no-deps -w dist .` in the root directory.
Upload to pypi using `python -m twine upload --repository pypi dist/*`.