semvec/pypi-packages huggingface dataset:
print-extended 0.2.0
Extended functionalities and better control over Python's built-in print function
License: MIT
Keywords: python,print,extended

# Print Extended

Extended functionalists and better control over Python's built-in print function

[![PyPI version](https://badge.fury.io/py/print-extended.svg)](https://badge.fury.io/py/print-extended)
[![Build Status](https://travis-ci.com/arrrlo/print-extended.svg?branch=master)](https://travis-ci.com/arrrlo/print-extended)

![GitHub issues](https://img.shields.io/github/issues/arrrlo/print-extended.svg)
![GitHub closed issues](https://img.shields.io/github/issues-closed/arrrlo/print-extended.svg)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/arrrlo/print-extended.svg)

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Marine-Traffic-API.svg)
![GitHub](https://img.shields.io/github/license/arrrlo/print-extended.svg?color=blue)
![GitHub last commit](https://img.shields.io/github/last-commit/arrrlo/print-extended.svg?color=blue)

## Installation

```bash
> pip install print-extended
```

# Usage

If you run Python interpreter with `-O` flag print will be disabled (watches for __debug__):

```bash
python -O

>>> import print_extended
>>> print('foo')
>>>
```

Runing it without `-O` flag works normal:

```bash
python

>>> import print_extended
>>> print('foo')
foo
>>>
```

Control your print with `PrintControl` class:

```python
import print_extended
from print_extended import PrintControl

PrintControl.template = '--> {print} <--'
PrintControl.fg_color = 'green'
PrintControl.bg_color = 'blue'
```

![PrintControl](docs/images/terminal.png)

Change underlying print function:

```python
import print_extended
from pprint import pprint
from print_extended import PrintControl

PrintControl.print_function = pprint

print({...}) # will print it using pprint
```

Disable and enable printing

```python
import print_extended
from print_extended import PrintControl

PrintControl.disable() # print(...) now does nothing

PrintControl.enable() # print(...) now prints
```
pypai 1.3
The python tool for Open Platform for AI
License: MIT

# PyPAI

![](https://img.shields.io/badge/pypai-v1.1-green.svg)
![](https://img.shields.io/badge/Unix-pass-blue.svg)
![](https://img.shields.io/badge/Windows-pass-blue.svg)

This is a python tool for Open Platform for AI.

# Installation

`pip install pypai`

# Demo

1. Create and run `submit.py` in **your project folder** to generate the configuration:

```python
from pypai import PAI

# Create a PAI cluster
pai = PAI(username='xxx', passwd='xxx')

# Generate the configuration
pai.generate_config()
```

2. Open `pai_configuration.json` and modify it，**The path of code dir MUST follows '/$PAI_DEFAULT_FS_URI/.../$PAI_USER_NAME~$PAI_JOB_NAME'. The default path is $PAI_DEFAULT_FS_URI/Users/$PAI_USER_NAME/$PAI_USER_NAME~$PAI_JOB_NAME**.

3. Change and run `submit.py` to submit your job:

```python
from pypai import PAI

# Create a PAI cluster
pai = PAI(username='xxx', passwd='xxx')

# Submit job
pai.submit()
```

All the code in your project folder will be uploaded and your job will be submitted to the PAI.


# API

```
class PAI:
    @paremeters:
    username: (str) PAI username
    passwd: (str) PAI password
    url: (str) PAI master node IP
    worker: (int) thread number for uploading code

function generate_config:
    @paremeters:
    jobName='test'
    image='192.168.193.253:5000/pytorch'
    dataDir=''
    outputDir=''
    codeDir='$PAI_DEFAULT_FS_URI/Users/$PAI_USER_NAME/$PAI_USER_NAME~$PAI_JOB_NAME'
    gpuType=''

function submit:
    @paremeters:
    config_path='./pai_configuration.json'
    dir_path='./'            code path
    dest_dir='/Users/'       code root path in the hdfs
mongomon 0.0.5
A profiler for Python and mongodb
License: MIT
Keywords: pymongo,mongo,mongodb,monitoring,profiling

![](media/cover.png)

# mongomon

A Python mongodb monitor and profiler for development.


## Quick Start

Install using pip/pipenv/etc. (we recommend [poetry](https://github.com/sdispater/poetry) for sane dependency management):

```
$ poetry add mongomon --dev
```

Initialize before you set up your MongoDB connection:

```py
from mongomon import Monitor, Config
Monitor(Config(file_capture=".*/(wiki.*)")).monitor()
```

Use `file_capture` to specify how to extract relevant project file paths from traces, rather than absolute file paths.

## Exploring the Example
![](/media/demo.gif)

We've taken the example from [Flask-PyMongo](https://flask-pymongo.readthedocs.io/en/latest/) to show how easy it is to have mongomon integrated and running.

You can [look at the integration here](examples/wiki). To run it:

```
$ poetry shell
$ cd examples/wiki && pip install -r requirements
$ python wiki.py
```


## Configuration

Your main configuration points for mongomon are:

* `file_capture` - an aesthetic configuration point for capturing files for your project. Usually of the form `.*/(your-project.*)`, content in parenthesis are a regular expression capture group, and is what we actually extract.
* `low_watermark_us` - a threshold in microseconds (us) above which mongomon starts working (yellow).
* `high_watermark_us` - a high threshold in microseconds (us) above which mongomon displays timing as alert (red).


Rest of configuration looks like so (with their defaults and comments):
```py
    # cleans up stack trace with uninteresting things. Usually packages, standard library, etc.
    ignores = attrib(
        default=[
            ".*/site-packages/.*",
            ".*traceback.format_stack.*",
            r".*/lib/python\d\.\d+/.*",
        ]
    )
    # shows a file, cleans up absolute path to a file
    file_capture = attrib(default="(.*)")
    # above this value mongomon starts working
    low_watermark_us = attrib(default=5000)
    # above this value mongomon flags as alert
    high_watermark_us = attrib(default=40000)
    # customize how mongodb query looks like before printing to screen
    query_filter = attrib(default=identity)
    # want to print to something else? replace this
    print_fn = attrib(default=print_)
    # want shorter stack traces? customize this
    stack_preprocess = attrib(default=trim_last)
```

### Thanks:

To all [Contributors](https://github.com/jondot/mongomon/graphs/contributors) - you make this happen, thanks!

# Copyright

Copyright (c) 2019 [@jondot](http://twitter.com/jondot). See [LICENSE](LICENSE.txt) for further details.
corriente 0.1
Python streaming library
License: MIT

# Corriente

`Corriente` is the word for `stream` in Spanish.  `Corriente` is python library for stream processing. 
The library is designed to facilitate the easy and quick prototyping of streaming applications.  Yet, it can be surprisingly performant and scalable. It can be used in any domain.  For example, in the vision domain it can be used to quickly develop video streaming analytics applications such as object detection, object tracking, object counting, etc.
snapshot-selenium 0.0.2
Render echarts using selenium
License: MIT
Keywords: python

================================================================================
snapshot-selenium
================================================================================

.. image:: https://api.travis-ci.org/pyecharts/snapshot-selenium.svg
   :target: http://travis-ci.org/pyecharts/snapshot-selenium

.. image:: https://codecov.io/github/pyecharts/snapshot-selenium/coverage.png
   :target: https://codecov.io/github/pyecharts/snapshot-selenium


.. image:: https://readthedocs.org/projects/snapshot-selenium/badge/?version=latest
   :target: http://snapshot-selenium.readthedocs.org/en/latest/


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


You can install snapshot-selenium via pip:

.. code-block:: bash

    $ pip install snapshot-selenium


or clone it and install it:

.. code-block:: bash

    $ git clone https://github.com/pyecharts/snapshot-selenium.git
    $ cd snapshot-selenium
    $ python setup.py install

Change log
================================================================================

0.0.2 - 01.04.2019
--------------------------------------------------------------------------------

update
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

#. it will take an external browser driver and render images

0.0.1 - 09.04.2019
--------------------------------------------------------------------------------

first release
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

#. use selenium driver for rendering pyecharts output as image