semvec/pypi-packages huggingface dataset:
shed_sh 1.0.0
Don't run "curl | sh" again. Use "curl | shed" to verify scripts before running.
License: MIT

shed - the sh editor
====================

Don't run ``curl | sh`` again. Use ``curl | shed`` to verify scripts
before running.

Usage
=====

Replace ``sh`` with ``shed`` in any pipe-sh commands you run. shed will:

-  save the piped script to a temp file
-  open the temp file in ``$SHED_EDITOR`` or ``$EDITOR`` to let you view
   and modify the script
-  ask you if you still want to run the script, preserving any changes
   you made

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

This is a Python 3 script, so use ``pip3`` to install:

::

    pip3 install shed_sh

**Note the spelling:** ``shed_sh`` is different from ``shed``.

After this, run ``shed`` or ``bashed`` from your terminal to verify it's
installed properly.

Examples
========

Piping to sh
------------

Take your questionable **curl**-pipe-sh or **wget**-pipe-sh command

.. code:: shell

    curl -L https://npmjs.org/install.sh | sh
    wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

and use shed to view and edit your script before running it:

.. code:: shell

    curl -L https://npmjs.org/install.sh | shed
    wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | shed

Piping to bash
--------------

bashed protects your **bash** shell, too: take this unknown script

.. code:: shell

    wget -q -O - https://fixubuntu.com/fixubuntu.sh | bash

and verify the contents before running:

.. code:: shell

    wget -q -O - https://fixubuntu.com/fixubuntu.sh | bashed

Config
======

Set your preferred editor:

::

    export SHED_EDITOR=vim

shed also checks ``$EDITOR``, then falls back to ``nano``, ``vim``,
``vi``, and ``emacs`` in order.

Contributions
=============

Bug reports, fixes, or features? Feel free to open an issue or pull
request any time. You can also tweet me at
[@mplewis](http://twitter.com/mplewis) or email me at matt@mplewis.com.

License
=======

Copyright (c) 2014 Matthew Lewis. Licensed under `the MIT
License <http://opensource.org/licenses/MIT>`__.
ppxml 0.1.0
Command-line tool pretty-print XML with xpath
License: MIT
Keywords: xml

ppxml
=====

Command-line tool to validate and pretty-print XML.

Setup
-----

.. code-block:: bash

  # Install through pip
  pip install ppxml

  # Install through git
  pip install git+https://github.com/h2rd/ppxml

  # or without cache
  cd /tmp
  git clone https://github.com/h2rd/ppxml
  cd ppxml
  python setup.py install

Examples
--------

Just prettify and colorize xml code:

.. code-block:: bash

    curl http://feeds.bbci.co.uk/news/rss.xml | ppxml

Use xpath for get some elements:

.. code-block:: bash

    curl http://feeds.bbci.co.uk/news/rss.xml | ppxml -x "//item"

Use xpath for get deeper elements:

.. code-block:: bash

    curl http://feeds.bbci.co.uk/news/rss.xml | ppxml -x "//item/title"
rage 0.1.0
Windows Registry Manipulation
License: MIT

Rage
====

Easy Windows-Registry display & manipulation in Python.

.. code:: python

    from rage import RegistryKey

    # Open some key
    key = RegistryKey(some_registry_path)

    # Print names of all subkeys
    for key_name in key.enum_keys():
        print key

    # Get a subkey
    subkey = key["subkey-name"]

    # Print out all the subkey's values
    for name, value in subkey.values:
        print repr(name), value

    # Set one of the values
    editable_subkey = subkey.get_editable()
    editable_subkey.values["my value name"] = RegSZ("Value value!")

    # Delete a value
    del editable_subkey.values["value to delete"]

    # Delete a subkey
    editable_subkey.delete_subkey("subkey name", recurse=False)
teacup 0.9
HTML Templating DSL for Python
License: MIT
Keywords: python module html markdown teacup coffeecup coffeekup templating template library

HTML Templating DSL for Python.
==============================

A simple HTML templating library that uses a DSL
mini-language. I tried to design it to be similar in feel
to Teacup/CoffeeKup (https://github.com/goodeggs/teacup). I
also took inspiration from jamescasbon's template.py script
(https://gist.github.com/jamescasbon/1461441).

Also includes the md() function for embedding markdown, and an option
for outputting prettified HTML.

Example usage::

    from teacup import *

    with html:
        with head:
            pass
        with body:
            with p:
                md("This is a **test!**")
            with p({"class":"test"}, id="testme"):
                text("Another test")
                a("Click here", href="https://google.com")

    print(render())

The python "with" keyword is used to nest HTML tags.
findmodules 0.6
Find project module directory relative to the running script.
License: MIT
Keywords: python module import directory path location folder

Find project module directory relative to the running script.

This module will search the currently runnings script's parent directory, and
all successive parent directories up to the root directory for a module matching
the `base` argument. If found, the directory is added to sys.path.

This is useful for sets of scripts that use custom project-specific modules that
you don't want to install into the system python modules folders.

Example usage::

    import findmodules
    findmodules.init(base='modules', realpath=True)

This example will search for a folder called "modules" in the current script's
directory, and all parent directories. Symlinks will be resolved first. If the
directory is found, it will be appended to sys.path.

Parameters:

    * `bin`: Path to script file. Default is currently running script file
    * `base`: Name of base module directory to add to sys.path. Default is "lib".
    * `append`: Append module directory to the end of sys.path, or insert at the beginning? Default is to append.
    * `ignore`: List of directories to ignore during the module search. Default is to ignore "/" and "/usr".
    * `realpath`: Should symlinks be resolved first? Default is False.
    * `pythonpath`: Should the modules directory be added to the PYTHONPATH environment variable? Default is False.
    * `throw`: Should an exception be thrown if no modules directory was found? Default is False.

Returns:
    * The path to the modules directory if it was found, otherwise None.
sanzang-lib 1.0.1
Translate from Chinese, Japanese, or Korean.
License: MIT
Keywords: chinese japanese korean cjk asia language translation

Sanzang Lib
===========

The Sanzang Library is a Python 3 module for translating from Chinese,
Japanese, and Korean (the CJK languages). The Sanzang Library implements the
main functions of the programs contained in Sanzang Utils.

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

To install this module, you can use pip or just the normal setup script::

    # python3 setup.py install

Usage and documentation
-----------------------

To begin using the module, you can just import it::

    import sanzang

To read about which functions are available and their usage, you could do::

    >>> import sanzang
    >>> help(sanzang)

Project links
-------------

* *GitHub: sanzang-lib* <https://github.com/yaoguai/sanzang-lib>
* *GitHub: sanzang-utils* <https://github.com/yaoguai/sanzang-utils>
* *Sanzang Homepage* <http://lapislazulitexts.com/sanzang>
* *Sanzang: Introduction* <http://lapislazulitexts.com/articles/sanzang_intro>
* *Sanzang Utils Tutorial* <http://lapislazulitexts.com/articles/szu_tutorial>
bard 15
announce ware
License: MIT

XMPP - IRC - CLI - RSS - UDP - API

Wet 1: Noem jezelf geen God als je geen respect hebt voor de schepping.

Wet 2: Ga vanuit onsterfelijkheid niet de sterfelijke mens duiden op zijn sterfelijkheid.

Wet 3: Laat een ieder zoals hij is, want veranderen brengt meer leed dan goed.

Wet 4: Gebruik leed niet om de mens naar God te leiden.

Wet 5: De mens is bedoelt om op de aarde te leven, voor de aarde. Niet voor de Hemel.

Wet 6: Accepteer geen hemel aarde interactie die een hel tot gevolg heeft.

Wet 7: Niet dat van een ander.
pyfm 0.2.4
A Tiny and Smart Terminal Player of douban.fm
License: MIT

豆瓣FM命令行播放器
==================

.. image:: https://badge.fury.io/py/pyfm.png
    :target: http://badge.fury.io/py/pyfm

使用Python编写的豆瓣FM命令行播放器

类似项目： https://github.com/taizilongxu/douban.fm


|Screenshot|


特性
----

-  依赖较少，易于安装和运行
-  支持私人兆赫，红心兆赫
-  支持豆瓣歌曲加心
-  支持Last.fm Scrobble

运行环境
--------

-  Linux/Mac OS X
-  Python 2.7+ , 3.3+

依赖
----

-  `mpg123 <http://www.mpg123.de>`__ (如果安装了 `mpv <http://mpv.io>`__ 或 `mplayer <http://mplayerhq.hu>`__ 亦会自动使用)
-  `requests <https://github.com/kennethreitz/requests>`__
-  `urwid <http://urwid.org>`__

安装
----

请首先安装支持的后端播放器中的某一个，然后使用pip安装本软件：

::

    (sudo)pip install pyfm
    

如果选择直接git clone整个仓库的方法安装，请先安装相关依赖，然后把pyfm目录下的fm.py移动到上层目录，最后执行 `python fm.py` 


使用
----

在终端中输入

::

    $ pyfm

配置
----

::

    $ pyfm config

根据提示输入账户，密码等，豆瓣账户密码不会保存在本地，豆瓣Token，Cookie，Last.fm账户名，Last.fm密码的md5值等保存在$HOME/.pyfm/中。

快捷键
------

::

    [n]  ->  跳过当前歌曲
    [l]  ->  给当前歌曲添加红心或删除红心
    [t]  ->  不再播放当前歌曲
    [q]  ->  退出播放器


出现问题？
-----------

请尝试清空$HOME/.pyfm/目录下的所有内容，重新安装等，如还不能解决，欢迎向我提issue。

致谢
----

本项目主要参考了以下几个项目

-  https://github.com/josephok/doubanfm
-  https://github.com/zonyitoo/doubanfm-qt
-  https://github.com/turingou/douban.fm
-  http://hg.user1.be/ScrobblerPlugin/

感谢以上项目的作者，开源万岁！

Changelog
---------

-  0.2.4 修复若干问题，支持关闭通知
-  0.2.3 修复若干Bug，加入红心兆赫，支持使用mpv和mplayer作为播放后端(`felixonmars <https://github.com/felixonmars>`__)
-  0.2.2 修复登陆失败时登陆状态不能正确显示的Bug
-  0.2.1 修复Last.fm密码为空时报错的Bug
-  0.2   代码大规模重构
-  0.1   第一个正式版本

协议
----

The MIT License

其中\ `scrobbler.py <https://github.com/skyline75489/pyfm/blob/master/pyfm/scrobbler.py>`__\ 遵循GPLv3协议

.. |Screenshot| image:: https://skyline75489.github.io/img/pyfm/screenshot.png
stepdad 0.0.4
Automatically package those singleton modules that keep getting lost. Other organziational benifits.
License: MIT
Keywords: pip,package managementt

``stepdad``'s purpose is to be able to round up and bring order to those many standalone python modules that maybe you
wrote or found on the web at some point and have kept a copy (or copies) ever sense.

Given just a single python file (module), ``stepdad`` will create an appropriate setup.py and other files if necessary.
All metadata is carefully tracked so that when it comes time to upgrade you just ...upgrade like you would any other
python module or package.
gogpy 0.0.2
use gog visualization system from Python
License: MIT

=====
gogpy
=====

Communicate with a `gog`_ server for data visualization independent of
Python.

.. _gog: https://github.com/ajschumacher/gog

The ``gog`` function sends data from a `pandas`_ DataFrame to a gog
server such as `gogd`_. The gog server is responsible for passing the
data to a gog frontend such as `gogi`_ for visualization.

.. _pandas: http://pandas.pydata.org/
.. _gogd: https://github.com/ajschumacher/gogd
.. _gogi: https://github.com/ajschumacher/gogi


Usage
-----

::

  > import pandas as pd
  > my_data = pd.DataFrame({'x': [1, 2, 3], 'y': [3, 1, 1]})
  > from gogpy import gog
  > gog(my_data)
tset 0.1.1
time sets for Python
License: MIT

====
tset
====

time set: all the states of a Python ``set`` data structure over time,
without storing every complete version, and with nice 'as-of' (``at``)
access.

Implementation: Currently stores the most recent version completely,
so accessing the most recent version is not too slow. Accessing older
versions is slower because it walks through the history. The whole
thing will eventually slow down when there are tons of versions
because it goes through all the version times fairly naively.


Usage
-----

::

  > from tset import Tset
  > from datetime import datetime

  > beginning = datetime.now()
  > t = Tset(range(1,5))
  > middle = datetime.now()
  > t.value(range(3,8))

  > t.value()
  # {3, 4, 5, 6, 7}

  > t.value(at=middle)
  # {1, 2, 3, 4}

  > t.value(at=beginning)
  # {}


Tests
-----

Run the tests with ``nosetests`` or ``python -m test``.


Context
-------

The idea of preserving data history is not unique. There is a
considerable work on `persistent data structures`_ (which is quite
distinct from the idea of persisting data to disk). Interesting
related (and more comprehensive) implementations include `ZODB`_'s
`Generational Sets`_, `dat`_, and `Datomic`_.

.. _persistent data structures: http://en.wikipedia.org/wiki/Persistent_data_structure
.. _ZODB: http://www.zodb.org/
.. _Generational Sets: https://bitbucket.org/zc/generationalset
.. _dat: http://dat-data.com/
.. _Datomic: http://www.datomic.com/