semvec/pypi-packages huggingface dataset:
pyarcanist 0.0.1
Pure python cli for Phabricator

pyarcanist
==========

A simple cli tool for Phabricator. Aims at being some sort of arcanist on
steroids.

## Installation

Preferably in a venv:

```
(venv) user@host:~/src/project$ pip install pyarcanist
```

## Usage

The main cli entry point is the `pyarc` command:

```
(venv) user@host:~/src/project$ pyarc --help
Usage: pyarc [OPTIONS] COMMAND [ARGS]...

  Entry point

Options:
  -v, --verbose / --no-verbose
  -h, --host TEXT
  -t, --token TEXT
  --help                        Show this message and exit.

Commands:
  diff          List Diffs
  send-message  Send a harbormaster message
  whoami        Gives informations on the current user
```

By default, it will use your `~/.arcrc` file to get your Phabricator connection
credentials, but you can also pass the `--host` or `--token` options.

### Diff

This commands allows to query currently open Phabricator Diff objects (not only
your Diff).

```
(venv) user@host:~/src/project$ pyarc diff --help
Usage: pyarc diff [OPTIONS]

  List Diffs

Options:
  -u, --mine / --all-users
  -A, --all-repos / --current-repo
  -s, --summary / --default
  --help                          Show this message and exit.
```

If it is executed from a directory which is a git repo corresponding to a
Phabricator repository (a Diffusion oject), then the default behavior of the
`diff` command is to display Diff objects for the current repo only
(ie. `--current-repo`).

If it is executed in a directory that does not match any project in
Phabricator, then all (open) Diff are returned by default (ie. `--all-repos`).

Note that the matching between the local git repository and the Phabricator
Diffusion object if made on tracked remote repositories (git remote): it looks
for a configured tracked repositories of the local git which URL corresponds to
a public URI of one of the Phabricator Diffusion object.

Examples:

```
(venv) user@host:~/src/project$ pyarc diff -As
Changes Planned  D617: Always output valid JSON-LD.
Accepted         D619: Translate authors from package.json

(venv) user@host:~/src/project$ pyarc diff -A
Needs Review     D617
Repo: swh-indexer (DCIDX)
Author: vlorentz
Created: 7 days ago
Modified: 38 minutes ago
Summary:
  Always output valid JSON-LD.

  Our metadata extraction used to export a nested dict structure
  loosely based on JSON-LD with schema.org/CodeMeta.

  This diff makes it output proper JSON-LD data.

  Note that because of some issues (eg.
  https://github.com/codemeta/codemeta/issues/198 and the impossibility to
  represent a software entity without a specific version), I removed
  `softwareRequirements` and `softwareSuggestions` from the output

  As a side-effect, it resolves T1289

  PS: Morane, don't review this diff today, it can wait until tomorrow :)

Needs Review     D619
Repo: swh-indexer (DCIDX)
Author: vlorentz
Created: 6 days ago
Modified: 33 minutes ago
Summary:
  Translate authors from package.json

  This is an example of hardcoded translation that's impossible
  to do directly from the crosswalk table

```
py_redis_simple_queue 0.0.4
A simple but useful redis queue/worker

# Redis simple queue


Very simple implementation from article : http://peter-hoffmann.com/2012/python-simple-queue-redis-queue.html


## usage

```shell
    pip install py_redis_simple_queue
```

### The sender
```python
from redis import Redis

from redis_simple_queue import RedisQueue


connection = Redis() # see docs at https://docs.objectrocket.com/redis_python_examples.html


queue = RedisQueue('my_queue', connection)
queue.put('my message')
```

### The worker

```python
from redis import Redis

from redis_simple_queue import Worker, RedisQueue

class MyWorker(Worker):

    def run(self, msg):
        print(msg)
        # do something with message

connection = Redis()
queue = RedisQueue('my_queue', connection)
worker = MyWorker(queue)
worker.dequeue()
```
credsleuth 0.0.19
A rule based library to help identify credentials and secrets in files and strings.

# Credential Sleuth
A rule driven library for detecting secrets and credentials within files and strings.

## Simple Usage
### Finding secrets in a string:
```python
import credsleuth

data = """
Hello, world
Password=123
aws_access_key_id = AKIAIOSFODNN7EXAMPLE
Goodbye
"""
print(credsleuth.check_string(data))
```


### Finding secrets in a file:
```python
import credsleuth

print(credsleuth.check_file("filename.txt"))
```

### Command line usage
```bash
credsleuth filename.txt
```

## Advanced Usage

### Customizing configuration
```python
import credsleuth

config = credsleuth.ConfigEngine()
config.verbose = True
config.rules_file = 'custom_rules.json'

credsleuth.check_file('filename.txt', config)
```

## Installation
`pip install --user credsleuth`

## Writing Rules
See `rules.json` for an example in extending rules definitions. 

## Todo
- Add some comments to codebase
- Add pretty output options for command line execution.
- Write a proper read me.
- Build model to detect credentials based upon entropy
- Search multiple files