semvec/pypi-packages huggingface dataset:
detalog 0.1.0
Logger for awesome Deta Space applications based on awesome PingBack events aggregator
License: MIT
Requires Python: >=3.9,<4.0

# DetaLog

DetaLog is a Python package that provides a logging handler for sending logs to a [PingBack](https://github.com/MaximilianHeidenreich/PingBack) events crawler. This can be useful for aggregating logs from multiple sources into a central place, and analyzing them to gain insights about your application or system.

## Installation

You can install DetaLog via pip:

```
pip install detalog
```

## Usage

Here's an example of how to use DetaLog in your Python code:

```python
import logging
from detalog import PingBackHandler

app_url = "https://my-pingback-events-crawler.com"
api_key = "my-api-key"

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

handler = PingBackHandler(app_url, api_key, project="my-project", channel="my-channel")
handler.setLevel(logging.INFO)

logger.addHandler(handler)

logger.info("Hello, world!")

logger.debug("Hello, world!", extra={"channel": "debug-channel", "project": "my-project-2"})
```

In this example, we create a logger with the name `__name__`, which is the name of the current module. We set its logging level to `INFO`, which means it will log messages at the `INFO` level or above. We also create a `PingBackHandler` instance, passing in the URL of the PingBack events crawler, an API key for authentication, and optional `project` and `channel` parameters to specify the destination of the logs. We set the handler's logging level to `INFO` as well, so it will only handle messages at that level or above.

Finally, we add the handler to the logger, and log an `INFO` message with the text "Hello, world!". This message will be sent to the PingBack events crawler via the handler's `emit` method, in the form of a JSON payload.

## License

DetaLog is licensed under the MIT License. See LICENSE for details.
secure-web3 1.3.2
Secure wallet and development enviroment
License: MIT
Requires Python: >=3.7

# Secure Web3

### About

<p>
This is a simple, secure command-line wallet for EVM compatible wallets. Additionally, it is a secure framework for developers to manage their private keys with. It contains a setup wizard that encrypts your wallet and saves it into a json file for secure storage. 
I wrote it because I have a lot of web3 projects and I do not like storing private keys in plaintext on disc.
<p>
<b> Use as a wallet</b>
</p>
<p>
Sw3 is a command line wallet which is compatable with any EVM chain. Currently it supports sending both 
eth and erc20 tokens. I will be adding more features in time.
</p>

<pre>
usage: Secure Web3 Cli [-h] [-i INIT_WALLET] [-o [OPEN_WALLET]] [-l] [-n {ethereum,polygon,bsc,aurora,goerli}] [-it IMPORT_TOKEN] [-b] [-r BROADCAST_RAW] [-s {eth,erc20}] [-L]

options:
  -h, --help            show this help message and exit

  Wallet managment options.

  -i INIT_WALLET, --init INIT_WALLET
                        Initialize this new wallet
  -o [OPEN_WALLET], --open [OPEN_WALLET]
                        Unlock a wallet, use default wallet if not specified.
  -l, --lock            Lock all open wallets.
  -n {ethereum,polygon,bsc,aurora,goerli}, --network {ethereum,polygon,bsc,aurora,goerli}

  Wallet configuration options and functions

  -it IMPORT_TOKEN, --import-token IMPORT_TOKEN
                        Add this token to the specified wallet.

  EVM State-Reading functions.

  -b, --balance         Get wallet balance info.

  EVM State-Writing related options.

  -r BROADCAST_RAW, --raw BROADCAST_RAW
                        Load a json tx from this file to sign and broadcast.
  -s {eth,erc20}, --send {eth,erc20}
                        Open interactive shell to send ethereum.
  -L, --legacy          Use legacy gas protocol.


</pre>

<p>
<b>
As a development framework
</b>
</p>

<p>
See main.py for example use.
</p>

### Installation 
<p>
To install with pip:
</p>
pip3 install secure-web3==1.2.8

<p>
You can also install from source by cloning this repo, installing the dependencies in requirements.txt, 
and running `setup.py build`  and then `setup.py install`.
</p>

### Configuration

<p>
secure-web3 expects to find your rpc endpoints in the .env file. It will look for these names:

{network}_http_endpoint
{network}_ws_endpoint

Example:

ethereum_http_endpoint
ethereum_ws_endpoint

</p>

#### If pycryptodome crashes ...
<p>
Run $ pip3 install --upgrade  pycryptodome
</p>

#### If web3 crashes,
<p>
run $pip3 install web3 --upgrade
</p>
<pre>



>> from secure_web3 import sw3
>> manager = sw3.wallet_manager.WalletManager(wallet_file)
>> priv_key = manager.decrypt_load_wallet()

</pre>

### Changelog

- January 28th, 2023 -- Added support for flashbots RPC and private transactions.
k4 0.1.0a0
A command line tool for controlling and interacting with Kafka.
License: MIT
Requires Python: >=3.11,<4.0

# K4

K4 is a terminal based UI to interact with your Kafka clusters.

## Roadmap

kafka_wrapper

- [ ] acl
- [x] broker
- [x] test broker
- [ ] consume
- [x] consumer groups/offsets
- [x] test consumer groups/offsets
- [ ] partition
- [ ] producer
- [x] topic
- [x] test topic

k4

- [ ] ~/.config/k4config
- [ ] 10 bit custom colors
- [x] windows
    - [x] command input
    - [x] scrolling - https://github.com/mingrammer/python-curses-scroll-example
    - [x] resizing
- [x] screen
- [ ] screen manager
- [ ] content row edit
- [ ] content row describe
- [x] poc edit ini config using default terminal editor. see examples/kafka_wrapper/topics.py


## Wish List

- producer
- consumer
- schema registry
- kafka connect
- query JMX metrics for and display to users. disk size, bytes-in, bytes-out, etc.
    - https://github.com/dgildeh/JMXQuery/tree/master/python

## Install

```bash
pip install k4
```

## Examples

```
TODO
```

## License

[Apache 2.0 License - aidanmelen/k4](https://github.com/aidanmelen/k4/blob/main/README.md)
kevlar-system-inspector-extras 1.0.0
A security scanner for Linux systems
License: MIT

.. image:: https://inspector.starlab.io/kevlar-system-inspector-logo.svg
   :align: center
   :width: 75%

======================================================================
Star Lab Kevlar System Inspector: A Security Scanner for Linux Systems
======================================================================

Kevlar System Inspector is an embedded security test suite that grew out of
`Star Lab's`_ extensive experience assessing and protecting mission-critical
systems for the U.S. Government.  These test have been made available for
public use to help identify security issues in a variety of Linux systems.  The
set of tests present in Kevlar System Inspector will be expanded as adversary
techniques and tactics change, and as we continue development of `KES`_.

These tests are generally more aggressive than other security scanning tools: We
prefer to probe behavior rather than check configurations values. However, we
do not include any actual exploit code or include any tests that could
destabilize the system. (And of course, we check configuration values too.)

.. _Star Lab's: https://www.starlab.io
.. _KES: https://www.starlab.io/kevlar-embedded-security


System Requirements
===================

Kevlar System Inspector requires Python 3.8 or higher. Our emphasis is on
embedded Linux distros (Yocto-based), but Kevlar System Inspector is a pure
Python project that should run on most modern Linux distros.


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

We provide several methods for installation:


Install from PyPI
-----------------

If your system is capable of installing packages from PyPI, Kevlar System
Inspector may be installed using ``pip``.

Because Kevlar System Inspector should be run as root, we suggest using ``pip``
to install to a virtual environment:

.. code-block:: console

   $ python3 -m venv kevlar-venv
   $ ./kevlar-venv/bin/pip install kevlar-system-inspector
   $ sudo ./kevlar-venv/bin/kevlar-system-inspector

You can also install Kevlar System Inspector system wide:

.. code-block:: console

   $ sudo python3 -m pip install kevlar-system-inspector
   $ sudo kevlar-system-inspector


Standalone Tarball
------------------

For systems that cannot easily install from PyPI, we provide a `standalone
tarball`_ with all dependencies bundled into a single package. Once you have
copied this tarball to your device, you can simply extract and run:

.. code-block:: console

   $ tar xf ./kevlar-system-inspector-standalone.tar.gz
   $ sudo ./kevlar-system-inspector-standalone/kevlar-system-inspector

.. _standalone tarball: https://inspector.starlab.io/kevlar-system-inspector-standalone-v1.0.0.tar.gz