semvec/pypi-packages huggingface dataset:
littlegit 0.2.0
This is a little tiny wrapper around Git CLI
License: MIT

# Littlegit

A very little Python wrapper around Git CLI.

Littlegit doesn't need any external dependency except for the [Git](https://git-scm.com/) binary to be installed in your system.

All the current, past and future commands and options of Git are fully supported.

## Installation

Install Littlegit with `pip`:

```
pip install littlegit
```

## Usage

To use Littlegit is very simple, it follows a very simple rule to map Git's commands to Littlegit's API:

- every Git command is a method
- every argument is a method's argument
- every option is a method's keywords

Lets explain this with an example of initialising a local repository, adding a file and commiting:

```python
from pathlib import Path

from littlegit import Git

repo = Git(Path("/my/local/repo"))
repo.init()  # git init /my/local/repo

open("myfile", "w").close()

repo.add("myfile")  # git add myfile
repo.commit(message="this is my first commit")  # git commit --message "this is my first commit"
repo.remote("add", "origin", "<my_remote_repo>")  # git remote add origin <my_remote_repo>
repo.push("origin", "master")  # git push origin master
print(repo.log(_1=True))  # get only the last log message
```

All the methods return the output if the Git command:

```python
output = repo.branch(remote=True)  # git branch --remote
print(output)
origin/HEAD -> origin/master
origin/master
```

## Tests

To run the unit tests install the development dependencies and then run [PyTest](https://pytest.org/):

```
pip install -r requirements_dev.txt
pytest tests.py
```
py-spy-kw 0.1.4
A Sampling Profiler for Python
License: MIT

py-spy-kw: Sampling profiler for Python programs
================================================

py-spy-kw is a project forked from benfred/py-spy
(https://github.com/Rosyuku/py-spy/releases/tag/v0.3.3).

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

Prebuilt binary wheels can be installed from PyPI with:

::

    pip install py-spy-kw

Usage
-----

py-spy-kw supports additional one subcommand ``log`` which can output
stack trace jsonfiles of python process automatically every sampling.
Following code is a sample command that launches myprogram.py and
outputs stack trace jsonfiles to ./log 10 times per second until the
process ends.

.. code:: bash

    py-spy-kw log -o ./log -r 10 -- python myprogram.py

.. figure:: ./images/log.png
   :alt: log output

   log output
redapi 0.2.2
Redacted.ch API
License: MIT
Requires Python: >=3.7

# redapi

This project is based off of whatapi and provides a wrapper around the AJAX API for Redacted.ch. 
As of right now, it only supports API Key authentication. 

## Example usage:

```python
    >>> import redapi
    >>> apihandle = redapi.RedAPI(apikey='v22rdsreb.cg54vt5 3633fyru2894fg54')
    >>> apihandle.request("browse", searchstr="Square Up")
    ...
    >>> apihandle.get_torrent()
```


To use another tracker:

```python

    >>> import redapi
    >>> apihandle = redapi.RedAPI(apikey='v22rdsreb.cg54vt5 3633fyru2894fg54', server='https://passtheheadphones.me')
    >>> apihandle.request("browse", searchstr="The Beatles")
    ...
```


Basic API reference available at  [What documentation](https://github.com/WhatCD/Gazelle/wiki/JSON-API-Documentation) and on the [Redacted API Documentation](https://redacted.ch/wiki.php?action=article&id=455).