semvec/pypi-packages huggingface dataset:
fake-httpd 0.0.2rc11
Fake httpd which parses/logs requests
Requires Python: >=3.8

# fake-httpd

*fake-httpd* is a relatively simple program with one simple goal: pretend to be
a real httpd. Requests are logged but no further action is taken, responses not
formulated and sent back to the client, etc.

...

<!--
vim: ts=2 sw=2 tw=100 et fdm=marker :
-->
hidabc 0.3.0
HID interfacing abstract protocols and platform implementations
Requires Python: >=3.7
Keywords: hid io abc abctract abstraction protocol hidraw

******
hidabc
******

Collection of abstract protocols to interact with HID devices.


Backend implementations
=======================

- Linux Hidraw - ``HidrawInterface``
- PyUSB (libusb/openusb) - ``PyUSBInterface``


Compatibility Table
===================

+--------------------+----------------------+----------------------+----------------------+---------------------------------+
| Interface/Platform |        Linux         |        macOS         |        Windows       | OpenBSD, NetBSD, Haiku, Solaris |
+--------------------+----------------------+----------------------+----------------------+---------------------------------+
| Interface          | ``HidrawInterface``  | ``PyUSBInterface``\* | ``PyUSBInterface``\* | ``PyUSBInterface``\*            |
|                    | ``PyUSBInterface``\* |                      |                      |                                 |
+--------------------+----------------------+----------------------+----------------------+---------------------------------+
| ExtendedInterface  | ``HidrawInterface``  | ``PyUSBInterface``\* | ``PyUSBInterface``\* | ``PyUSBInterface``\*            |
|                    | ``PyUSBInterface``\* |                      |                      |                                 |
+--------------------+----------------------+----------------------+----------------------+---------------------------------+
| FullInterface      | ``PyUSBInterface``\* | ``PyUSBInterface``\* | ``PyUSBInterface``\* | ``PyUSBInterface``\*            |
+--------------------+----------------------+----------------------+----------------------+---------------------------------+

\* Requires OS driver detach.
py-altdns 1.0.2
Generates permutations, alterations and mutations of subdomains and then resolves them.

# Altdns - Subdomain discovery through alterations and permutations

Altdns is a DNS recon tool that allows for the discovery of subdomains that conform to patterns. Altdns takes in words that could be present in subdomains under a domain (such as test, dev, staging) as well as takes in a list of subdomains that you know of.

From these two lists that are provided as input to altdns, the tool then generates a _massive_ output of "altered" or "mutated" potential subdomains that could be present. It saves this output so that it can then be used by your favourite DNS bruteforcing tool.

Alternatively, the `-r` flag can be passed to altdns so that once this output is generated, the tool can then resolve these subdomains (multi-threaded) and save the results to a file.

Altdns works best with large datasets. Having an initial dataset of 200 or more subdomains should churn out some valid subdomains via the alterations generated.

Further information on attack methodology and this tool release can be found here: https://docs.google.com/presentation/d/1PCnjzCeklOeGMoWiE2IUzlRGOBxNp8K5hLQuvBNzrFY/

# Installation

`pip install py-altdns`

# Usage

`# altdns -i subdomains.txt -o data_output -w words.txt -r -s results_output.txt`

- `subdomains.txt` contains the known subdomains for an organization
- `data_output` is a file that will contain the _massive_ list of altered and permuted subdomains
- `words.txt` is your list of words that you'd like to permute your current subdomains with (i.e. `admin`, `staging`, `dev`, `qa`) - one word per line
- the `-r` command resolves each generated, permuted subdomain
- the `-s` command tells altdns where to save the results of the resolved permuted subdomains. `results_output.txt` will contain the final list of permuted subdomains found that are valid and have a DNS record.
- the `-t` command limits how many threads the resolver will use simultaneously
- `-d 1.2.3.4` overrides the system default DNS resolver and will use the specified IP address as the resolving server. Setting this to the authoritative DNS server of the target domain *may* increase resolution performance 

# Screenshots

<img src="https://i.imgur.com/fkfZqkl.png" width="600px"/>

<img src="https://i.imgur.com/Jyfue26.png" width="600px"/>

# Show some love

If this tool was useful at all to you during DNS recon stages - we'd love to know. Any suggestions or ideas for this tool are welcome - just tweet [@infosec_au](https://twitter.com/infosec_au) or [@nnwakelam](https://twitter.com/nnwakelam) and we'll work on it.
transpeg 1.2.0
Transparent JPEG emulation via SVG
Requires Python: >=3.0

<img src="https://raw.githubusercontent.com/igrmk/transpeg/main/example/transpeg.svg" width="196">

Wanna transparent JPEG?
Unfortunately there is no such thing except mostly unsupported JPEG 2000.
But you can convert your transparent image into SVG containing a color information as JPEG and an alpha channel as a greyscale mask.
This simple tool does exactly this.
The logo above is an example.

Usage
=====

    transpeg input.png output.svg

Installation
============

    pip install transpeg

Alternatives
============

1. WebP. Unfortunatelly WebP is not well supperted in Safari yet.
2. https://github.com/tannerhodges/gulp-zorrosvg
3. https://github.com/gribnoysup/jpng.svg

Why
===

1. It is dead simple in Python
2. I needed a PNG palette for a mask
wpdatautil 0.9.2
Utility functions for data processing
Requires Python: >=3.8
Keywords: utilities

# wpdatautil
**wpdatautil** is a Python 3.8 package with specific reusable utility functions for data processing.

## Installation
`pip install -U wpdatautil` will install the package but intentionally not any third-party requirements.
Given that the third-party package requirements can be numerous, and not all of them are relevant to most users, they can be installed as needed by a user.

## Usage
The implemented utilities are broadly organized by their primary third-party or builtin package requirement.
For example, `.pandas` contains utilities which primarily require the `pandas` package.
Similarly, `.boto3.s3path` contains utilities which require both the `boto3` and `s3path` packages.
Pytorch-Easy 0.0.3
This is a simple script that help to train pytorch model
Requires Python: >=3.6
Keywords: Pytorch Easy

# -*- coding: utf-8 -*-
"""
Created on Fri Sep 10 02:38:37 2021

@author: Dhusor
"""

Example Code: 

Run Model Pytorch Model From Zero Epoch:

y:start from zero epoch n:after previous epoch y
Enter Number Of Epoch: 1
Enter path to save the model: /content/drive/MyDrive/Data/


Again Train After Some Epochs.We need to load previous model info.

run_model(inception_v3,train_loader,validation_loader,optimizer,criterion)

y:start from zero n:train after previous epoch: n
Enter Previous Trained Path: /content/drive/MyDrive/Data/trained.pt  
Enter End 2
------------------------------------------------------------
Epoch 1/1
----------------------------Tranning Summary----------------------
training Tranning Avg. Loss: 1.6109 Tranning Avg. Acc: 0.2000
----------------------------Validation Summary-----------------
validation Validation Avg. Loss: 1.6110 Validation Avg. Acc: 0.2000
comment-header-creator 20210909.0
Create nicely formatted comment strings to be used as headers/seperators in your code.
Requires Python: >=3.6

# Comment Header Creator
Create a "header" for separating/describing sections of your Python code.

I don't know about you but I like to "organize" my Python methods and functions by putting some sort of comment 
seperator between them.  This helps me when scrolling through my code to find particular categories of routines.

There are basically 2 main methods:  Basic or Fancy
 - Basic (the uniline() method) returns a formatted string that is a single line with the 'title' centered.
 - Fancy (the multiline() method) returns a formatted string that is 3 lines long with the 'title' centered in the 
   center line.

> There is a "hidden" function, _generate_line(), is the secret sauce to generating the lines.  You can call this 
> directly but bear in mind it returns a Tuple (string and a boolean).

## Installation
For some reason that I cannot figure out PyPi changes "comment_header_creator" into "comment-header-creator".  This 
causes issues in that you have to use "dashes" to pip install but then use "underscores" to import.
`pip install comment-header-creator`

## Example Uses
See example.py for how to use or:
  - Create a single-line header but input title from user input:
```python
import comment_header_creator as chc
print(chc.uniline())
```
  yields:
```bash
Enter Title: title of section
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- TITLE OF SECTION -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
```

  - Create a multi-line header but input title from user input:
```python
import comment_header_creator as chc
print(chc.multiline())
```
  yields:
```bash
Enter Title: Another Section
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ANOTHER SECTION -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
```

  - Create a single-line (or multi-line) header by passing title in function call:
```python
import comment_header_creator as chc
print(chc.uniline(title='Greatest Hits'))
```
  yields:
```bash
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- GREATEST HITS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
```

  - You can also set your own 'expander' string:
```
import comment_header_creator as chc
chc.uniline(title="it's a flesh wound", expander='0i')
"# i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i IT'S A FLESH WOUND i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i0i #"
```
> NOTE:  In the previous example notice that we didn't use the print() function.  This will return a string, which you 
> then need to "strip" the quotes off the front and end.  Thus, I suggest print()'ing your outputs.
python-lib-flow.ci 1.21.6
flow.ci python open api lib
Requires Python: >=3.6

# python-lib

open api python lib for plugin

- `pipenv install requests`

Update related image and lib

- [Agent Dockerfile](https://github.com/FlowCI/flow-agent-x/blob/master/Dockerfile)
- [Pyenv Dockerfile](https://github.com/FlowCI/images/blob/master/pyenv/Dockerfile)
- [Plugin runtime Dockerfile](https://github.com/FlowCI/images/blob/master/plugin-runtime/Dockerfile)