semvec/pypi-packages huggingface dataset:
j2static 0.2.3
static templating engine

J2static
========

About this project
------------------
This project aims to unify a set of internally produced scripts for generating
static content, choosing to standardise on the jinja2 templating engine.

Simply put, this project aims to provide utilities to do the following:

* Static site generation (for gitlab)
* Generate customised summary documents based on submissions
* Generate PDFs from CSV files and templates (mail merges)

Development
-----------
The recommended way to develop the tools in the package is to use development
mode of setup.py, this will create executables in your path which can be used
to test changes.

::

  ./setup.py develop --user

We're open to pull requests and feature requests, this should be done via our
gitlab_ server.

Usage
-----
The project consits of two executables, j2static, the static site generator
and j2merge, the mail merge tool.

j2static executable
...................
j2static builds files stored in a directory named _templates/ using jinja2,
generating output documents in site/. The tool will ignore any file that starts
with an underscore, allowing for the creation of templates.

j2static can also act as a webserver for local testing. In this mode the server
will not generate output documents on disk, but will instead generate and send 
them to the browser 'on the fly'. This is useful if you have javascript on
your site and don't want to fall foul of the browser's security settings when
testing with local files.

::

  j2static build # use templates in the _templates/ directory to build the site
  j2static serve # start a webserver on localhost (for development)


j2merge executable
..................
j2merge is a 'mail merge' tool for combining csv files with a template document
this is useful for producing reports or personalised documents. This can be
optionally combined with a LaTeX distrubtion to generate PDFs.

j2merge assumes that the csv file provided has headers and contains a row named
id which will be used for the resulting filenames. The data for each row will
be available in the template as the variable row.

::

  j2merge data.csv # combine data.csv and base.html to generate documents
  j2merge data.csv -out pdf # combine data.csv and base.tex to generate pdfs

.. _gitlab: https://git.fossgalaxy.com
bsn 0.0.2
This package can be used to test whether a number is a bsn (Burger Service Number, Dutch Social Security Number), but it can also generate the numbers

# bsn
Generate or validate bsn (burger service nummer, dutch social security number)

A bsn (burger service number, dutch social security number) is used in Netherlands to identify a person for governmental organisations. The numbers are subject to an algorithm.

## Verification algorithm

mod(sum(Position_of_digit * digit),11) = 0

whereas the first position should be considered as negative

## Example

Consider the following number: 319072356
```
(9 x 3) + (8 x 1) + (7 x 9) + (6 x 0) + (5 x 7) + (4 x 2) + (3 x 3) + (2 x 5) + (-1 x 6) = 154
154 mod 11 = 0
```

## Initiate the module and create instance

```
import bsn
a = bsn.bsn()
```

### Validate number

```
a.validate_bsn(number)
```

### Generate n numbers

```
a.generate_bsn(n)

```
click-stream 0.0.10
Click option type for http/https/file inputs
Keywords: click

click-stream
============

Click option type for http/https/file inputs

Usage
-----

.. code:: python

   import click
   from click_stream import Stream


   @click.command()
   @click.option('--in', type=Stream())
   def streamcli(inp):
       click.echo(inp.read())

Supported inputs
----------------

::

   # files
   $ cli --in /path/to/file.txt

   # stdin
   $ echo input from stdin | cli --in -

   # HTTP/S
   $ cli http://google.com
silvaq-lib 0.1.5
个人常用功能封装

# common tool library for silvaq

# silvaq-pylib
我自己常用的功能封装起来，方便自己日常使用

- version 0.1.5 :
    -  新增了日期常规方法

## 工具库
1. [x] file 文件相关
2. [x] dir  目录相关
3. [x] time 日期、时间相关
4. [x] mail 发送邮件相关
5. [x] logger 日志相关


# 安装
```bash
pip3 install silvaq-pylib
```
# 更新
```bash
pip3 install  --upgrade silvaq-pylib
```

# 使用
```python
from silvaq_libs import file as silva_file
from silvaq_libs import dir as silva_dir
from silvaq_libs.mail import Server as SilvaMailServer
from silvaq_libs.logger  import Logger as SilvaLogger

if __name__ == '__main__':

    # for files
    silva_file.exist("/tmp/test.txt")

    #for dir 
    silva_dir.maketree("a/b/c/d")

    # for mail
    params_dict = {
        'host': "server_host",
        'sender': "sender",
        'password': "password",
        'username': 'username',
        'port': 25,
    }
    to="somebody"
    sub="somesub"
    con="somecon"
    SilvaMailServer(**params_dict).send_mail(to,sub,con)

    #for logger
    logger = SilvaLogger("log_path","log_file_prefix","log_file_suffix","halder_container_cap")
    logger.log("some con")
    logger.log("some con again")
    # ... more log here
    # notice  目前所有配置都是默认项，所以日志是实时写入的，如果有需求想用缓冲请自行查阅并修改创建hander时open 的buffer
    # todo 这一项将提供可选方法
    logger.commit() 

```
xply 0.1.1
An exploit development framework for Python 3

<h1 align="center">xply</h1>

<h5 align=center>An exploit development framework for Python 3</h4>

<p align="center">
  <a href="#about">About</a> •
  <a href="#setup">Setup</a> •
  <a href="#contributing">Contributing</a> •
  <a href="#license">License</a>
</p>

## About

This is a ground-up rewrite of the great `pwnlib` for Python 2. There were a
number of attempts to port `pwnlib` to Python 3, but they all appear abandoned.
In addition, they still had a bunch of issues with the changes in Python 3,
especially when it comes to the handling of binary data.

`xply` does not have nearly the range of features that `pwnlib` has (although
more will be added over time), but was written from the ground up with Python 3
in mind.

## Setup

You can install `xply` using `pip`:

```bash
pip install xply
```

`xply` requires at least Python 3.7 (for `from __future__ import annotations`).

## Contributing

Contributions are always welcome! If you encounter a bug or have a feature request, please [open an issue](https://github.com/tobiasholl/xply/issues/new) on GitHub. Feel free to create a [pull request](https://help.github.com/articles/creating-a-pull-request/) for your improvements.

## License

xply is licensed under the MIT license, as found in the LICENSE file.

----

<sup>© 2019 Tobias Holl (@TobiasHoll)</sup>
bitmex-ws-onix 0.3.1
FoRK: Sample adapter for connecting to the BitMEX Websocket API.

# Python Adapter for BitMEX Realtime Data

This is a reference adapter for receiving realtime data from the BitMEX API. See [the BitMEX documentation](https://testnet.bitmex.com/app/wsAPI)
for more information on the websocket API.

# Installation

`pip install bitmex-ws`

# Quickstart

`BitMEXWebsocket` is the main entry point to connect to the BitMEX websocket API. The API supports both authenticated
and unauthenticated clients. Some endpoints require credentials, for more info see
[the documentation on authentication.](https://testnet.bitmex.com/app/wsAPI#Authentication)

To get started, instantiate a connection:

    from bitmex_websocket import BitMEXWebsocket
    ws = BitMEXWebsocket(endpoint="https://testnet.bitmex.com/api/v1", symbol="XBTUSD", api_key=None, api_secret=None)

If you want to subscribe to authenticated data streams, [create an API key](https://testnet.bitmex.com/app/apiKeys) and
supply the corresponding values in `api_key` and `api_secret`. BitMEX has two systems - `testnet` for simulated
trading and testing, and `www` for live trading. API keys are specific to one system. If you created the key on testnet,
make sure your connection string points to testnet as well.

Once you are connected, you can retrieve data via the connector's methods. The latest data will be streamed to the
client - no need to poll the server.

    ws.get_instrument()
    ws.get_ticker()
    ws.funds()
    ws.market_depth()
    ws.open_orders()
    ws.recent_trades()

`main.py` has a full example of how to connect to BitMEX:

    $ python main.py
    2018-02-01 11:51:53,355 - bitmex_websocket - INFO - Connecting to wss://testnet.bitmex.com/realtime?subscribe=execution:XBTUSD,instrument:    ...
    2018-02-01 11:51:53,356 - bitmex_websocket - INFO - Not authenticating.
    2018-02-01 11:51:54,357 - bitmex_websocket - INFO - Connected to WS.
    2018-02-01 11:51:54,360 - bitmex_websocket - INFO - Got all market data. Starting.
    2018-02-01 11:51:54,364 - root - INFO - Ticker: {'last': 8947.0, 'sell': 8948.0, 'buy': 8947.0, 'mid': 8947.0}
    2018-02-01 11:51:54,369 - root - INFO - Market Depth: [{'id': 15500000950, 'side': 'Sell', 'size': 384, 'price': 999990.5, 'symbol': 'XBTUSD' ...
    2018-02-01 11:51:54,370 - root - INFO - Recent Trades: [{'side': 'Sell', 'size': 29856, 'price': 8947, 'symbol': 'XBTUSD', 'timestamp':       ...

# Compatibility
This module supports Python 3.5+.