semvec/pypi-packages huggingface dataset:
nbsetuptools 0.1.2
Help you install your nbextensions
License: BSD

# NBSetupTools

> Help you install your nbextensions

## Features

* Install nbextensions
* Activate nbextensions
* Activate nbserverextensions
* Disable any extension

## How to use

Install `NBSetupTools` with: `conda install nbsetuptools -c anaconda-notebook` and setup this
boilerplate:

```
extension/
  - extension/
    - nbextension/
      __init__.py
      handlers.py
    - static/
      main.js
      edit.js
      tree.js
    __init__.py
    _version.py
    setup.py         # We will work here!
  setup.py           # Your python setup.py, nothing new here!
  README.mdi         # You need documentation
```

You'll have 2 different `setup.py` files. One is for your `nbserverextension` which
is the same as a python module. There is plenty of documentation about that
[here](https://docs.python.org/2/distutils/index.html).

The next one works with `nbsetuptools` and it should look like:

``` python
from nbsetuptools import setup, find_static

setup(
    name='extension',
    version='0.1.0',
    static=find_static()
)
```

Once you have your module installed you can run:

```
cd extension
python setup.py install --prefix $CONDA_ENV_PATH --enable
python setup.py remove --prefix $CONDA_ENV_PATH
```

## Options available

```
$ python setup.py install --help
usage: setup.py install [-h] [-e] [--path [PATH]] [--overwrite] [--symlink]
                        [--user] [--prefix [PREFIX]]
                        [--nbextensions_dir [NBEXTENSIONS_DIR]]
                        [--destination [DESTINATION]] [--verbose [VERBOSE]]

Install nbextension

optional arguments:
  -h, --help            show this help message and exit
  -e, --enable          Automatically load server and nbextension on notebook
                        launch
  --path [PATH]
  --overwrite
  --symlink
  --user
  --prefix [PREFIX]
  --nbextensions_dir [NBEXTENSIONS_DIR]
  --destination [DESTINATION]
  --verbose [VERBOSE]
```
winkar_utils 0.0.7
Util functions for python
License: BSD

Install
=======

.. code:: shell

    pip install winkar_utils

Utils for python
================

chaining
~~~~~~~~

Add chaining enumerate supports for iterables

.. code:: python

    import utils
    range(10).map(lambda x: x**2) \
          .filter(lambda x: x>10) \
          .take(5) \
          .reduce(lambda x,y: x+y)

Encodings
~~~~~~~~~

Add additional encodings for str

.. code:: python

    import utils
    print "asd".encode("bin")   # => 011000010111001101100100
    print "011000010111001101100100".decode("bin")  # => asd

Concurrent
~~~~~~~~~~

Utils for coding concurrently

.. code:: python


    from utils.concurrent import multiThread

    @multiThread(10)  # the param indicate how many threads to start
    def ox(x):
        return x

    ox(range(10))     # this will run concurrently
                      # param should be a collection of orgin param type

Log
~~~

Utils for log

.. code:: python

    import logging
    from utils.log import stream_handler, formatter, logger

    logger.warn("test")   # the logger has been set level to warn
                          # use formatter as its default output format
                          # and will only print to stdout
    logger.setLevel(logging.INFO)
                          # change log level
    logger.name = "test"  # change logger name

Factor
~~~~~~

.. code:: python

    from utils.factor import factor
    factor(130)         # => [2,5,13]
    factor(131)         # => [1,131]

Which will also add a factor command like linux to PATH

Useful third-party libraries
============================

Pwntools
~~~~~~~~

A very useful integrated pwn library.

`Pwntools github repo <https://github.com/Gallopsled/pwntools>`__

Can just install through pip.

.. code:: python

    from pwn import *
    context(arch = 'i386', os = 'linux')

    r = remote('exploitme.example.com', 31337)
    # EXPLOIT CODE GOES HERE
    r.send(asm(shellcraft.sh()))
    r.interactive()

libformatstr
~~~~~~~~~~~~

Library specially for format string exploit.

Install with pip.

.. code:: python

    import sys
    from libformatstr import FormatStr

    addr = 0x08049580
    system_addr = 0x080489a3

    p = FormatStr()
    p[addr] = system_addr

    # buf is 14th argument, 4 bytes are already printed
    sys.stdout.write( p.payload(14, start_len=4) )

fnmatch
~~~~~~~

Library that supports bash-style wildcard.

Install with pip

.. code:: python

    from fnmatch import fnmatch
    fnmatch("target", "tar*")     # => true
    fnmatch("target", "TARG.T")   # => false