semvec/pypi-packages huggingface dataset:
amari-api.py 1.3.0
An asynchronous API wrapper for the Amari API.
License: MIT
Requires Python: <4,>=3.9

Amaripy
========

.. image:: https://readthedocs.org/projects/amaripy/badge/?version=latest
   :target: https://amaripy.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://img.shields.io/pypi/v/amaripy.svg
   :target: https://pypi.org/project/amaripy/
   :alt: PyPi Library version

.. image:: https://img.shields.io/pypi/pyversions/amaripy.svg
   :target: https://pypi.org/project/amaripy/
   :alt: PyPi library Python versions

Amaripy is an async, easy to use API wrapper for the AmariBot and a fork of amari.py.

Installation
------------

Enter any of these commands to install the library:

.. code:: sh

  pip install amari-api.py

  python -m pip install amari-api.py

Key features
------------

- Utilizes the whole Amari API
- Asynchronous built
- Anti 429s (rate limiting)

Support
-------

If you have any questions or require support with the API wrapper, visit the `AmariBot Support Server <https://discord.gg/qKkSUSwU2G>`_ and ask in `#amari.py <https://discord.com/channels/346474194394939393/882370112710123570>`_.

Bugs
----

If you find any bugs with the library, you can report it by creating a bug issue at `Amaripy's Github repo <https://github.com/RayyanW786/amaripy>`_.

Docs
----

Visit the `Amaripy docs <https://amari-py.readthedocs.io/en/latest/>`_ for usage of the library.
git-dumper 1.0.8
A tool to dump a git repository from a website
License: MIT
Requires Python: >=3.0
Keywords: dump, git, repository, security, vulnerability, ctf

# git-dumper

A tool to dump a git repository from a website.

## Install

This can be installed easily with pip:
```
pip install git-dumper
```

## Usage

```
usage: git-dumper [options] URL DIR

Dump a git repository from a website.

positional arguments:
  URL                   url
  DIR                   output directory

optional arguments:
  -h, --help            show this help message and exit
  --proxy PROXY         use the specified proxy
  -j JOBS, --jobs JOBS  number of simultaneous requests
  -r RETRY, --retry RETRY
                        number of request attempts before giving up
  -t TIMEOUT, --timeout TIMEOUT
                        maximum time in seconds before giving up
  -u USER_AGENT, --user-agent USER_AGENT
                        user-agent to use for requests
  -H HEADER, --header HEADER
                        additional http headers, e.g `NAME=VALUE`
  --client-cert-p12 CLIENT_CERT_P12
                        client certificate in PKCS#12 format
  --client-cert-p12-password CLIENT_CERT_P12_PASSWORD
                        password for the client certificate
```

### Example

```
git-dumper http://website.com/.git ~/website
```

### Disclaimer

**Use this software at your own risk!**

You should know that if the repository you are downloading is controlled by an attacker,
this could lead to remote code execution on your machine.

## Build from source

Simply install the dependencies with pip:
```
pip install -r requirements.txt
```

Then, simply use:
```
./git_dumper.py http://website.com/.git ~/website
```

## How does it work?

The tool will first check if directory listing is available. If it is, then it will just recursively download the .git directory (what you would do with `wget`).

If directory listing is not available, it will use several methods to find as many files as possible. Step by step, git-dumper will:
* Fetch all common files (`.gitignore`, `.git/HEAD`, `.git/index`, etc.);
* Find as many refs as possible (such as `refs/heads/master`, `refs/remotes/origin/HEAD`, etc.) by analyzing `.git/HEAD`, `.git/logs/HEAD`, `.git/config`, `.git/packed-refs` and so on;
* Find as many objects (sha1) as possible by analyzing `.git/packed-refs`, `.git/index`, `.git/refs/*` and `.git/logs/*`;
* Fetch all objects recursively, analyzing each commits to find their parents;
* Run `git checkout .` to recover the current working tree