semvec/pypi-packages huggingface dataset:
simple-log 0.0.4
A python module with sensible defaults for logging
License: MIT

Simple Logging
===============================

* version number: 0.0.4
* date: 2023.03.08
* author: Andrew J. Todd esq.

Overview
--------

A python module to allow you to log with minimal fuss. It's a wrapper around the standard logging module with sensible defaults and as little configuration as possible. Documentation is on [halfcooked.com](https://halfcooked.com/code/simple_log/)

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

To install use pip:

    $ pip install simple_log


Or clone the repo::

    $ hg clone https://hg.sr.ht/~andy47/simple_log
    $ python setup.py install
    

Usage
-----

We try and stay true to the name and make using this module as simple as possible. For the simplest case just use

    >>> from simple_log import get_log
    >>> my_log = get_log()
    >>> my_log.info("This is an information message")
    2016.11.10 22:21:51 default INFO:: This is an information message
    
If you want to have multiple logs just pass a name to `get_log`

    >>> first_log = get_log("first")
    >>> first_log.info("Information message to first log")
    2016.11.10 22:27:30 first INFO:: Information message to first log
    >>> second_log = get_log("two")
    >>> second_log.debug("This is a debug message")
    2016.11.10 22:28:02 two DEBUG:: This is a debug message

By default the logging level is set to `'INFO'` (the standard module defaults to `'WARNING'`). See the [logging tutorial](https://docs.python.org/3/howto/logging.html#logging-basic-tutorial) for information on logging levels. If you would like to change the logging level, for instance to display 'DEBUG' messages use the `setLevel` method on your log object

    >>> from simple_log import get_log
    >>> my_log = get_log('test_log')
    >>> my_log.debug('This is the first debug message')
    ...
    >>> my_log.setLevel('DEBUG')
    >>> my_log.debug('This is the second debug message')
    2016.11.10 22:34:55 test_log DEBUG:: This is the second debug message

The log level values that you can pass to `setLevel` are `'DEBUG'`, `'INFO'` (the default), `'WARNING'`, `'ERROR'` or `'CRITICAL'`.

If you would like your log messages written to a file as well as the screen use the `add_file` function

    >>> from simple_log import get_log, add_file
    >>> my_log = get_log('test_log')
    >>> my_log.info('This is an information message')
    2016.11.12 22:48:10 test_log INFO:: This is an information message
    >>> add_file('test_log', 'test_log.log')
    >>> my_log.info('This is another information message')
    2016.11.12 22:49:30 test_log INFO:: This is another information message
    >>> cat test_log.log
    2016.11.12 22:49:30 test_log INFO:: This is another information message
    
Contributing
------------

If you would like to contribute please visit the project web site at - https://hg.sr.ht/~andy47/simple_log
secure-web3-chevyoung 1.141
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>
<pre>

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

</pre>

### Changelog

- January 28th, 2023 -- Added support for flashbots RPC and private transactions.