semvec/pypi-packages huggingface dataset:
cratex 0.123.0
👨‍💻🛠️🔥⌛🏃📦Python bindings for the Qt cross platform application 

# vidstream
📦 dfsd
👨‍💻🛠️🔥⌛🏃📦Python bindings for the Qt cross platform application \ntoolkit thank you !
![This is an image](https://myoctocat.com/assets/images/base-octocat.svg)
Under construction! Not ready for use yet! Currently experimenting and planning!
Developed by Florian Dedov from NeuralNine (c) 2020

## Examples of How To Use (Buggy Alpha Version)
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
### // To call gui
```python
odc call CLI  # or ( odc.CLI ) ==> To call CLI
```
```python
odc call gui  # or ( odc.gui ) ==> To call GUI
```
```python
odc call web  # or ( odc.web ) ==> To call WEB
```
<input> <button>search</button>  </input>

```html
<input>
    <button>
        search
        </button>
    </input>
```

```python
from vidstream import StreamingServer
server = StreamingServer('127.0.0.1', 9999)
server.start_server()

# Other Code
server.stop_server()   #--> When You Are Done
```

### // Creating A Client
```python
odc call gui  #-> odc.gui
```
```python
from vidstream import CameraClient
from vidstream import VideoClient
from vidstream import ScreenShareClient

# Choose One
client1 = CameraClient('127.0.0.1', 9999)
client2 = VideoClient('127.0.0.1', 9999, 'video.mp4')
client3 = ScreenShareClient('127.0.0.1', 9999)

client1.start_stream()
client2.start_stream()
client3.start_stream()
```

Check out: https://www.youtube.com/c/NeuralNine

markdown_code_exec
Execute Python code in Markdown files and captures the output

Copyright 2022 Sebastiaan Mathôt

Command-line usage
usage: markdown_code_exec.py [-h] [-i INPUT] [-o OUTPUT]

optional arguments: -h, --help show this help message and exit -i INPUT, --input INPUT input markdown file -o OUTPUT, --output OUTPUT output markdown file

Function reference
markdown_code_exec.parse_text(md)

Takes a str containing markdown text, finds code blocks in the markdown, executes these code blocks and captures the output, and then embeds the captured output in the markdown.

Parameters
md: str : The input markdown string
Returns
str The compiled markdown string

markdown_code_exec.parse_file(src, dst)

Takes a markdown input file, executes code blocks while capturing output and writes the result to a new output file.

src: str The full path to the input file dst: str The full path to the output file

License
GNU General Public License 3
genanki-chinese 0.1.6
Packages which automates the creation and update of chinese notes for Anki
Requires Python: >=3.8

# genanki-chinese

Simple package which automates the creation of Chinese notes for Anki.

It produces notes with the following:
* Chinese word or phrase (Simplified)
* Chinese word or phrase (Traditional)
* English translation
* Audio in Chinese
* [Pinyin](https://en.wikipedia.org/wiki/Pinyin) of the phrase or word


## Installation

```
pip install genanki-chinese
```

## Usage

```bash
usage: genanki-chinese [-h] [-o OUTPUT] [-d DECKNAME] file

positional arguments:
  file                  Path of the file to import

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Path where to put the result
  -d DECKNAME, --deckname DECKNAME
                        Deck name to update
```

The `file` should have the following structure:

``` 
咖啡<br>	kāfēi<br><br>coffee	
水<br><br>water	
```

This is done so you can export your decks from Anki and improve it creating a new one.

You can also have word by word separated by newlines without the `<br>` html element.

To update decks you have to install the [Anki-Connect](https://github.com/FooSoft/anki-connect) plugin in Anki.
mbinobs 1.2
Mix bin obfuscator
Keywords: obfuscation,obfuscator,ipfuscation

# Mix binary obfuscation tool

Obfuscate -> Binary code into ipv4 / ipv6 / mac / uuid adresses <-

Instalation: `pip3 install mbinobs` or clone repo and run `pip3 install .`

Command line usage : `python3 -m mbinobs binary.bin ipv4/ipv6/mac/uuid`

Exemple :
```
3m@ss:~/mbin-obs$ echo 'qwertyuiopasdfghjkl123456789' > test.bin

Binary encoded as ipv4:
['113.119.101.114', '116.121.117.105', '111.112.97.115', '100.102.103.104', '106.107.108.49',
'50.51.52.53', '54.55.56.57', '10.0.0.0']

Binary encoded as ipv6:
['7177:6572:7479:7569:6f70:6173:6466:6768', '6a6b:6c31:3233:3435:3637:3839:0a00:0000']

Binary encoded as mac:
['71:77:65:72:74:79', '75:69:6f:70:61:73', '64:66:67:68:6a:6b', '6c:31:32:33:34:35', '36:37:38:39:0a:00']

Binary encoded as uuid:
['71776572-7479-7569-6f70-617364666768', '6a6b6c31-3233-3435-3637-38390a000000']
```

You can also import the encoding functions:
```python
from mbinobs import *

bfile = open('path_to_file','rb') # Use read bytes option ('rb')

uuid_list = uuid._encode(bfile)
ipv6_list = ipv6._encode(bfile)
ipv4_list = ipv6._encode(bfile)
mac_list = mac._encode(bfile)
```
You could use [RtlIpv6StringToAddressA](https://docs.microsoft.com/en-us/windows/win32/api/ip2string/nf-ip2string-rtlipv6stringtoaddressa "IPV6")
 or [RtlIpv4StringToAddressA](https://docs.microsoft.com/en-us/windows/win32/api/ip2string/nf-ip2string-rtlipv4stringtoaddressa "IPV4") and similar apis calls to convert those ASCII text to binary code.

Used by [Hive ransomware gang](https://www.sentinelone.com/blog/hive-ransomware-deploys-novel-ipfuscation-technique/) to encode shellcode payloads.
gspec 1.0.1
Gamma spectroscopy tools
Requires Python: >=3.8

# gspec
Python tool for working with gamma spectroscopy data

![Tests](https://github.com/cwand/gspec/actions/workflows/tests.yml/badge.svg)

## Installation
gpsc is most easily installed with pip:
```text
pip install gspec
```

## Usage
The central class in the gspec package is the `gspectrum` class:

```text
import gspec

spec = gspec.gspectrum()
```

### Variables
The `gspectrum` object will contain a few variables, that can be changed at will:

```text
from datetime import date

spec.energy_units = 'eV'            # Default: 'keV'
spec.count_time = 30.0              # Default: 0.0
spec.count_time_units = 'min'       # Default: 's'
spec.meas_date = date(2021,11,20)   # Default: date(1970,1,1)
```
These variables are used when plotting a spectrum or when adding and subtracting spectra.

### Adding data
One can add data to a `gspectrum` object manually
```text
spec.set_counts(152, 673.1) # Sets the number of counts at 152eV to 673.1
```
One can also create a spectrum object with pre-loaded data in a numpy-array:
```text
import numpy as np

n = np.array([[10, 231.0], [11, 232.2], [12, 0.0], [13, 2.0]])
spec = gspec.import_numpy(n)
```

### Getting data
To get the total counts, or the total count-rate, in a certain energy window of the spectrum:
```text
total_counts = spec.get_counts([32,33,78])    # Gets the sum of counts in the three bins (not necessarily continuous)
total_rate = spec.get_rate(range(45,50))      # Gets the total count rate  in the window between 45eV and 49eV (inclusive).
```
The count rate is simply computed as the total counts divided by the count_time variable.

### Adding and subtracting spectra
Spectra can be added (e.g. in case of multiple detectors) or subtracted (e.g. in case of background subtraction)
```text
bkg = np.array([[10, 13.0], [11, 13.1]]])
spec2 = gspec.import_numpy(bkg, count_time=30.0, count_time_units='min', energy_units='eV')
spec2.meas_date = date(2021,11,20) 
spec.add_spectrum(spec2, factor=-1.0, force=False)   # force=False is default and can be ignored here
```
This will subtract `spec2` from `spec` (in place). The `spec2` object will be unchanged. The `factor=-1.0` changes the addition to subtraction and can be any real number.
If the count times or time units are not equal, one will have to set `force=True` to enforce the addition.

### Saving and loading spectra
The spectrum can be saved in a text file:
```text
spec.print_txt('spectrum.txt', force=False)  # Set force=True to overwrite exisiting files with the same name
```

To load the spectrum later:
```text
spec3 = gspec.import_txt('spectrum.txt')
```

### Plotting
The spectrum can be plotted in a figure (this will block execution of the program)
```text
gspec.plot(spec, spectrum_string="Some title", windows=[[20, 22], [30, 35]], bkg=spec2, bkg_string="Some background", title="Figure title")
```
All input arguments after the first one are optional.
img-processing-dio 0.0.1
Projeto DIO
Requires Python: >=3.8

# package_name

Description.
The package package_name is used to:
	Processing:
		- Histogram matching
		- Structural similarity
		- Resize image
	Utils:
		- Read image
		- Save image
		- Plot image
		- Plot result
		- Plot histogram

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package_name

```bash
pip install img_processing_dio
```

## Author

Thiago

## License

[MIT](https://choosealicense.com/licenses/mit/)


<br><br>
<hr>
Projeto desenvolvido no lab "Descomplicando a criaÃ§Ã£o de pacotes de processamento de imagens em Python" da Digital Innovation One.