semvec/pypi-packages huggingface dataset:
janch 0.0.2
A YAML config centric tool to act on your service status
Requires Python: >=3.8

About Janch
===========

Janch is a utility that can be customized for checking anything.
It reads what it needs to check from a YAML file.


Features
--------

I just started the tool so the features are limited.

1. Run a linux command and inspect its output
2. Run a grep command and inspect its output
3. Gather content of a web address (http/https) and inspect the response


Installation
------------

Install from PyPi

.. code-block:: bash

    pip install janch

Run Help


.. code-block:: bash

    janch --help


Run a sample file

.. code-block:: bash

    janch run tests/samples/0.sample.yml



Quick Start
-----------


1. Create a YAML such as the following

.. code-block:: bash

    touch sample.yml
    vim sample.yml

.. code-block:: yaml

    command-example:
      gather:
        type: command
        command_str: python --version
      inspect:
        result: ^Python 3\.(.*)$

    grep-example:
      gather:
        type: grep
        filepath: test.env
        search: '='
      inspect:
        result: (.*)=(.*)
        line_count: 1

    webservice-example:
      gather:
        type: http
        url: http://www.example.com
      inspect:
        status: 200





2. Create a sample file for checking

.. code-block:: bash

    touch test.env
    vim test.env

.. code-block::

    # File Content
    Hello=world


3. Run Janch

.. code-block:: bash

    janch run sample.yml

4. You should get an output that looks as follows

.. code-block:: text

    item                            type    field           expected                        actual                          match error
    grep-example                    grep    result          (.*)=(.*)                       Hello=world                     True  False
    grep-example                    grep    line_count      1                               1                               True  False
    grep-example                    grep    error           NOERROR                         NOERROR                         True  False
    command-example                 command result          ^Python 3\.(.*)$                Python 3.8.2                    True  False
    command-example                 command error           NOERROR                         NOERROR                         True  False
    webservice-example              http    status          200                             200                             True  False
    webservice-example              http    error           NOERROR                         NOERROR                         True  False


5. The match column shows which of the items from the yaml behaved as expected
cgai-excel 0.0.7
An Excel processing tool.

# cgai-excel

#### 介绍
操作excel

#### 图片获取  

规定： 
1. 图片必须以内嵌的形式插入到单元格当中  
2. 图片格子中的文字将不会识别  
3. 解析到获取的图片路径前以img:为标识，比如: img:C:\\Temp\\output\\EXT\\xl/media\\image6.jpeg


#### 安装教程

```python
pip install cgai-excel

```

#### 使用说明
仅支持python3

```python
from cgai_excel.Handler import get_excel_data

path = r'F:\Temp\Q\excel_module.xlsx'
data = get_excel_data(path,extract_dirpath='F:\Temp\Q\Atemp')
```
depytrace 0.0.2
High conductance rooted trees in relation graphs.

# depytrace

This project provides an algorithm for fast
extraction of high-conductance trees (called *core traces*) 
rooted on designated graph nodes. 
<br>
<br>

**License:** Apache Software License
<br>**Author:** Emmanouil (Manios) Krasanakis
<br>**Dependencies:** `networkx` (required) `pcst_fast` (optional)

#  Roadmap
:x: Method ensemble.<br>
:x: Application for github project understanding.


#  Quickstart
Install the library in your environment,
for example per `pip install depytrace`.
Then, create a `networkx` graph, select a root node and run the snippet:
```python
import depytrace as dp

graph, root = ...
trace = dp.Core()(graph, root)
print(dp.conductance(graph, trace))
```

#  Features
* Near-linear running time with respect 
to the number of edges (doubling the edges, 
approximately doubles running time).
* Provable *1+A* factor approximations of maximum conductance, 
where *A* tend to be small.
* Extensibility to future breakthroughs on Steiner problems.



#  Customization
Core trace extraction is actually an NP-complete problem. For this
reason, solutions provided by this library are approximate and trade-off
tightness for speed.

In particular, solutions are found 
with an algorithm called *trace contraction*, which internally
relies on iteratively solving an NP-complete problems called *ELOD 
maximization*. In turn, the latter can be translated to rooted Steiner tree 
problems. To accommodate future theoretical breakthroughs,
the library allows setting up custom ELOD solvers, where tighter solvers
translate to tighter theoretical bounds of the trace contraction algorithm.

The dafault ELOD maximizer is a heuristic written in native Python and is
chosen thanks to its cross-platform support. For systems that integrate
the *gcc* compiler (e.g. Linux, Windows with mingw installed) you can 
also use a maximizer provided by the library that adjusts and depends on the 
[pcst_fast](https://github.com/fraenkel-lab/pcst_fast) Steiner tree solver.
To use the related maximizer, just install the *pcst_fast* library 
(if *gcc* is properly set up, this should be as simple as 
`pip install pcst_fast`) and run the snipper:

```python
import depytrace as dp

graph, root = ...
trace = dp.Core(dp.cleverRPCST)(graph, root)
print(dp.conductance(graph, trace))
```
hsoft 0.0.2
My package description
Requires Python: >=3.6

## test packaging
- https://www.youtube.com/watch?v=wCGsLqHOT2I&list=PLlM3i4cwc8zD-sac6lBQvC_yre7d9tbkj
- https://packaging.python.org/en/latest/tutorials/packaging-projects/

## make a distribution file so that it can be installed via pip
- ```pip install --upgrade setuptools```
    - https://setuptools.pypa.io/en/latest/userguide/quickstart.html
- ``` pip install --upgrade build``` 
    - build is a tool which makes a distribution file (e.g., tar.gz or .whl) that can be uploaded to pyPI.
- create setup.py
    ```
    # https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
    from setuptools import setup
    setup()
    ```
- create pyproject.tolm
    ```
    [build-system]
    requires = ["setuptools", "setuptools-scm"]
    build-backend = "setuptools.build_meta"
    
    [project]
    name = "hsoft"
    version = "0.0.2"
    description = "My package description"
    readme = "README.md"
    requires-python = ">=3.6"
    ```
- ```python -m build``` inside of my project folder
    this makes distribution file (e.g., tar.gz file and a .whl file) that can be uploaded to PyPI!

- pip install twine
- twine upload dist/*
- check at the PyPI
pyvcdr 0.0.9
A vcd wave file read library

# pyvcdr
this is a python library for vcd wave file read.

# install:
```
pip install pyvcdr
```

or just copy pyvcdr.py file to your project.


# readfile:
```
    import pyvcdr
    a = pyvcdr.VcdR()
    a.read_file('./test1.vcd')
```

# read from str:
```
    import pyvcdr
    a = pyvcdr.VcdR()
    a.parse_str('$var wire 1 ! D0 $end\n#0 0!\n')
```



# use the data:

after read. their are two ways to access the data.
first is access data by signal:
```	
    print(a.signals[0])#Signal(wire, 1, !, D0)
    print(a.signals[1])#Signal(wire, 1, ", D1)
    print(a.signals[2])#Signal(wire, 1, #, D2)
    print(a.signals[1].module)#D1
    for i in a.signals[1].steps:
        print(i)
        #(0, '1') time, val
        #(1250, '0')
        #(6250, '1')
        #。。。
```
second is access data by time:
```		
    for i in a.time_values:
        print('time:', i[0], '. sig:', i[1], '. val:', i[2])
        #(0, 'D0', '0')
        #(0, 'D1', '1')
        #(0, 'D2', '1')
        #(1250, 'D1', '0')
        #(6250, 'D1', '1')
        #(10000, 'D1', '0')
        #(15000, 'D1', '1')
        #...
```		





# why I write this code:

I need a python vcd file read program.

I used this library first:
https://github.com/westerndigitalcorporation/pyvcd
but it could not read file. just write is supported.

then this one:
https://github.com/em-/python-vcd/tree/master/vcd
it works, but is very very slow.



# info and thanks:

- the class Signal is from pyvcd library. 
- import error fix and pep8 sytle fix by @EtlamGit

# any issues：

I just write it for my file read. so it may not fit some IEEE 1364-2005 protocol.
if it do not work for you,
add an issue on github:
https://github.com/Jiangshan00001/pyvcdr

post the file that could not work.
or you can also change the code yourself.

# CHANGE:
- V0.8 2021.10.9 add parse_str function.
- V0.7 2021.5.9 BUG FIX: import error fix and pep8 sytle fix. thanks to @EtlamGit. 
- V0.6 2021.5.8. add suport for bBrR data support.
wallgen 0.2.3
A wallpaper generator for gnome (and kde)

# WallGen - A random wallpaper generator

## Summary

WallGen is a tool to generate wallpapers matching to your display configuration.

## Restrictions

* Needs a mutter based desktop, for example GNOME,
because WallGen reads the display configurations from mutter's DBus service.

## Requirements

* `python >= 3.6`
* `dbus`
* `glib`
* `imagemagick`
* `wand`, http://wand-py.org/
* `python-pydbus`
* `python-gobject`

## Usage

For a new wallpaper from \$HOME/Pictures/Wallpapers, run:
````
$ wallgen
````

For a new wallpaper from reddit, run:
````
$ wallgen -t reddit
````

For more options, run:
````
$ wallgen -h
````

## Advanced Usage

You can run WallGen as DBus service:
````
$ wallgen --dbus
````

After this every new execution of WallGen will use this service to create new wallpaper.
With WallGen as DBus service you can start it also as monitor for display changes:
````
$ wallgen --monitor
````
Whenever the configuration of your displays changes WallGen generates a matching wallpaper for you.

To stop the DBus service and the monitor, run:
````
$ wallgen --quit
````
token-auth-cli 0.2.1
Simple tool for testing token authentication during development.
Requires Python: >=3.8,<4.0


![PyPI](https://img.shields.io/pypi/v/token-auth-cli)
![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/0djentd/token-auth-cli?include_prereleases)
![GitHub all releases](https://img.shields.io/github/downloads/0djentd/token-auth-cli/total)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/token-auth-cli)

![GitHub issues](https://img.shields.io/github/issues/0djentd/token-auth-cli)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/0djentd/token-auth-cli)
![GitHub Repo stars](https://img.shields.io/github/stars/0djentd/token-auth-cli?style=social)

[![Python package](https://github.com/0djentd/token-auth-cli/actions/workflows/python-package.yml/badge.svg)](https://github.com/0djentd/token-auth-cli/actions/workflows/python-package.yml)
[![Pylint](https://github.com/0djentd/token-auth-cli/actions/workflows/pylint.yml/badge.svg)](https://github.com/0djentd/token-auth-cli/actions/workflows/pylint.yml)

# token-auth-cli
## Description
Simple tool for testing token authentication during development.

## Installation
```
pip install token-auth-cli
```
or
```
git clone https://github.com/0djentd/token-auth-cli.git
cd token-auth-cli
python -m pip install .
```

## How to use
```
Usage: token-auth-cli [OPTIONS] COMMAND [ARGS]...

  token-auth-cli

  Simple tool for testing token authentication during development.

Options:
  --verbose / --no-verbose    Show additional information
  --debug / --no-debug        Show debug information
  --confirm-settings BOOLEAN  Confirm settings before trying to get token.
  --show-settings BOOLEAN     Show settings before trying to get token.
  --api TEXT                  API url.
  --api-get-token TEXT        API url to use when trying to get token.
  --api-get TEXT              API url to check if token valid.
  --config FILE               Config file.
  --store BOOLEAN             Store users/tokens.
  --help                      Show this message and exit.

Commands:
  init     Create config file and users/tokens storage.
  list     List stored users/tokens.
  login    Get token and store it.
  relogin  Try to use stored token for authentication.
  remove   Remove stored user/token.
```