semvec/pypi-packages huggingface dataset:
sprite-unpack 0.1.1
Tool for cutting spritesheets into seperate images for importing into Godot, Unity, etc.
License: MIT
Requires Python: >=3.9,<4.0

# Sprite unpack

[![CI](https://github.com/savonarola/sprite_unpack/actions/workflows/CI.yml/badge.svg)](https://github.com/savonarola/sprite_unpack/actions/workflows/CI.yml)

## Description

Utility script for cutting sprite sheets into sprite images. See examples section.

## Installation

```bash
pip install sprite-unpack
```

## Requirements

Python >= 3.9

## Usage

```bash
sprite-unpack -i examples/doctor-doom-sheet.png -o ./examples/result
```

## Example

I am fan of writing tiny games. Usually I use free sprite sheets for them.
This script cuts sprite sheets into separate images ready for use in
Godot, Unity, etc.

The result of cutting [doctor-doom-sheet.png](examples/doctor-doom-sheet.png)
into images can be found in [examples/result](examples/result) folder.

The algorithm is pretty straigtforward and can be easily
understood from the following recording:

![Algo](examples/doctor-doom-sprites.gif).

**Caution!** The script does not handle disjoint sprites with many particles.
authparser 1.1
Used to parse http Authentication headers, and to call handlers per scheme.
License: MIT

# authparser
Used to parse http Authentication headers, and to call handlers per scheme.

Provides

### AuthParser
This class does the parsing and dispatches to handler methods per scheme.

`add_handler(scheme, user_record_fn, challenge_fn=None, **kwargs)`
- Registers an authentication scheme to be handled, and is details
  - **scheme**: (string) the name of the auth scheme, e.g. Basic, Bearer, Digest, etc.
  - **user_record_fn** (callable) the function `get_user_record()` calls after parsing the Authorization header.
    - The function will receive either the token for this scheme, or the params (see RFC 7235).
    - The function can return whatever your application needs, eg. True or False whether the Authoriation is valid, or a whole dict of claims.  `get_user_record()` merely passes what is returned back to your application.  
  - **challenge_fn** (callable) [optional] if specified, `get_challenge_header()` will call this function while building the `WWW-Authenticate` header. 
    - The function receives all kwargs passed to `get_challenge_header()`.  
    - The function should return a dict of name-value pairs which will be added to the scheme's challenge params.  e.g. a Digest challenge (without qop) will issue a challenge similar to: `WWW-Authenticate: Digest nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", realm="pointw.com", opaque="5ccc069c403ebaf9f0171e9517f40e41"`
  - **kwargs** - if any, they are passed through to the handler function.  For example, you may wish to pass the URL being requested, the method being used, or even the entire request object.


`clear_handlers()`
- Clears all handlers.

`get_user_record(auth_header)`
- Parses the Authorization header and passes the results to the handler for the corresponding scheme.
  - **auth_header** (string) the Authorization header from the request (with or without the starting `Authorization: ` keyword).

`get_challenge_header(**kwargs)`
- Returns the challenge header based on the handlers previously added.  Call this when forming the response to an unauthorized request.
  - **kwargs** [optional] 
    - set `multi_line=True` to have this method return an array of headers, one item in the array per scheme/handler.
    - all other kwargs are passed to the `challenge_fn` for it to use as it sees fit.  For example, if the request had an `Authorization:` header that had bad credentials, you could pass that fact to the `get_challenge_header()` so it can add details to the challenge header params. e.g. `WWW-Authenticate: Bearer error="invalid_token"`
burp 1.27
Annotated burp interfaces for python/jython
License: MIT

===============
burp-interfaces
===============

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

::

    pip2 install burp

Usage
=====

Now you should be able to import burp and receive typing hints!

::

    # Burp need to load each class explicitly
    from burp import IBurpExtender, IScannerCheck

    # This allow us to get typing hints for all burp classes in our IDE
    from burp import *

    class BurpExtender(IBurpExtender, IScannerCheck):
        def registerExtenderCallbacks(self, callbacks):  # type: (IBurpExtenderCallbacks) -> ()
            print "Loading plugin"
            callbacks.registerScannerCheck(self)

        def doPassiveScan(self, baseRequestResponse):  # type: (IHttpRequestResponse) -> List[IScanIssue]
            return []

        def doActiveScan(self, baseRequestResponse, insertionPoint):  # type: (IHttpRequestResponse, IScannerInsertionPoint) -> List[IScanIssue]
            return []



Documentation
=============

This is a python implementation of https://portswigger.net/burp/extender/api/

The purpose of this module is to provide typing hints (annotations) to your IDE.

NB. Do not include this module with your burp plugin

Known Issues
============

* Multiple signatures not supported in Python

python do not support multiple signatures. In many cases typing hints support multiple signatures.
When this is not the case, the methods will have an extra optional parameter called hey_check_docs to remind you that
there are multiple signatures for the given method.

Building
========

::

    git submodule update --init --recursive
    pip install -r requirements.txt
    python java2py/java2py.py --sourcedir sources --package burp --outfile burp/burp.py