semvec/pypi-packages huggingface dataset:
pyramid_rest_route 0.2
Simple helper for creating rest route and view
License: MIT

Pyramid helper to create restful route.

Using URL Dispatch and class base view.


At pyramid booststrap

```
def main(global_config, **settings):
    config = Configurator(settings=settings)
    config.include("pyramid_resources")
```

Registering route with `AppView`
```
    config.add_rest_route('app', 'apps', AppView,
        members={
            'basic': 'edit',
            'messaging': 'view',
            'admin': 'edit',
        },
        collections={
            'paid': 'admin',
        },
        factory=RootFactory)

```

A simple `AppView` implementation

```
class AppView(RestView):

    renderers = {
        'basic': '/app/basic.mako'
    }

    def basic(self):
        return {
            'location': 'Render at basic.mako'
        }

    @view_config(
        route_name='paid_app',
        renderer='json',
        custom_predicates=(allowed_extension(*['.json']),)
        permission='read')
    def paid(self):
        return {
            "message": "using json renderer on json extension"
        }


```
BSSLint 0.5
Derived from the popular CPPLint from Google, but modified to incorporate code styles by Dr. B.S. Sanjeev for my undergraduate Data Structures and Algorithms courses
License: MIT

BSSlint
===========
Derived from the popular CPPLint from Google, but modified to incorporate code styles by Dr. B.S. Sanjeev for my undergraduate Data Structures and Algorithms courses.

We've all written terrible code, and using proper indentation and code styling is the first step one has to take to improve the quality of code. Linter is a helper, that helps in identifying common style related errors in code.

The style guidelines this tries to follow are based on Google's Style Guide, however they have since then been modified to incorporate the styles suggest for my course.

Every problem is given a confidence score from 1-5, with 5 meaning the certainty of the problem, and 1 meaning it could be a legitimate construct. This will miss some errors, and is not a substitute for a code review.

Installation
======================
Method 1 (Recommended)
------------------------
bsslint can be installed using both pip and easy_install globally by running the commands :

sudo pip install bsslint
or

sudo easy_install bsslint

Method 2 (Do It Yourself)
--------------------------
The script can also be directly used by downloading the binary into the folder of execution by running the command :

wget -O bsslint http://git.io/vuUVj && chmod +x bsslint
Once the executable file is in the desired folder, any code can be evaluated using :

./bsslint [FILENAME]

Usage
===============
If you have installed bsslint globally, and if it is available in your $PATH, a simple command can be used :

bsslint [FILENAME]

Another cool way of using bsslint is to use add the following mapping in vimrc to add a key (like F8), to run the lint when desired :

autocmd filetype cpp nnoremap<F8> :!bsslint % <CR>
autocmd filetype c nnoremap<F8> :!bsslint % <CR>
For similar tools to compile and evaluate results like IDE from within vim, check out my vimrc and other dotfiles.

Full Disclaimer
==================
This is a very old code, that I had lost, and then recovered one day. It is not perfect, however it was extremely helpful to me during the evaluations. I have tried cleaning it up a little.

Contributions are welcome.

Known Errors
==================
All variables used in any function are to be declared at the start of the same. This file does not detect this requirement.

License
============
MIT
amusement 0.1.2
A python package and CLI to get wait times for rides at various theme parks
License: MIT

# amusement

amusement is a Python package and CLI (command-line interface) to get the current wait times and show times of attractions at many popular theme parks. We currently support:

* All Disney parks in USA, plus Paris
* All Universal parks worldwide (with the exception of Singapore)
* All Seaworld parks
* Hersheypark

## Example
### CLI
Get wait times right from your terminal
```
amusement islands-adventure --rides
```

### Library
```
from amusement.parks.universal.IslandsOfAdventure import IslandsOfAdventure

ioa = IslandsOfAdventure()
print ioa.rides()
# or print ioa.shows() if you want show times instead
```
A full list of the rides and shows in the park will be displayed!

## Getting Started
```
pip install amusement
```
That's it!

## Parks
amusement supports a lot of parks. Here's a breakdown of which parks are supported and which features have been implemented.

| Park Name                     | Rides       | Shows       |
| ------------------------------|-------------|-------------|
| Magic Kingdom                 |x            |             |
| Epcot                         |x            |             |
| Hollywood Studios             |x            |             |
| Animal Kingdom                |x            |             |
| Disneyland                    |x            |             |
| Disney's California Adventure |x            |             |
| Universal Studios Florida     |x<sup>1</sup>|x<sup>1</sup>|
| Islands of Adventure          |x<sup>1</sup>|x<sup>1</sup>|
| Universal Studios Hollywood   |x<sup>2</sup>|x<sup>2</sup>|
| Universal Studios Japan       |x<sup>3</sup>|x<sup>3</sup>|
| Hersheypark                   |x            |             |
| Seaworld Orlando              |x            |x            |
| Seaworld San Diego            |x            |x            |
| Seaworld San Antonio          |x            |x            |
| Busch Gardens Williamsburg    |x            |x            |
| Busch Gardens Tampa           |x            |x            |

<sup>1</sup> USF/IOA currently only show a subset of attractions in the park. We are looking to address this in a future release.

<sup>2</sup> USH uses the official times based off of the USH website. Because this is a website that does not consistently present times in a predictable format, this may fail from time to time.

<sup>3</sup> If the park is closed, nothing will appear. We hope to address this in a future release.

## Contributors
I welcome any and all contributions! Please view CONTRIBUTING.md for more information.I'm more than happy to help first-timers and anybody else, so don't be shy and respond on the issues if you're interested in helping out.
 
## Tests
```
nosetests
```
Run this from the root directory to run tests.

## License
MIT
should 0.5.4
assert with should
License: MIT
Keywords: assert,should,test,BDD

should
----------------

.. image:: https://img.shields.io/travis/Ralph-Wang/should.svg?style-flat-square
    :target: https://travis-ci.org/Ralph-Wang/should
.. image:: https://img.shields.io/coveralls/Ralph-Wang/should.svg?style-flat-square
    :target: https://coveralls.io/r/Ralph-Wang/should

Bugs: https://github.com/Ralph-Wang/should/issues
More Details: https://github.com/Ralph-Wang/should/blob/master/README.md

安装:
----------------

::

    pip install should


使用方法:
----------------


.. code-block:: python

    from should import it

    # 一般的断言
    it(1).should.be.int
    it({}).should.be.no.ok
    it(2).should.be.equal(2)
    it(10).should.be.no.equal(8)
    it([1,2,3]).should.contain(3)

    # lambda 版异常断言
    it(lambda: int('abc')).should.throw(ValueError)
    it(lambda: int('123')).should.no.throw(ValueError)


- 更多例子请参考 tests_

.. _tests: https://github.com/Ralph-Wang/should/blob/master/tests


License
----------------

The MIT License


Change Log
----------------

v0.5.4
~~~~~~~~~~~~~~~~

* 增加 subclassof 接口
* 添加 shouldnt 取反属性

v0.5.3
~~~~~~~~~~~~~~~~

* 增加 count 接口
* 增加 same 接口, 判断是否为同一个对象
* 拆分测试文件

v0.5.2
~~~~~~~~~~~~~~~~

* 小重构, 删除 _flag 属性
* match/search 支持 list 和 dict. dict 只验证值
* .contain 支持 contain(v1, v2, v3)

v0.5.1
~~~~~~~~~~~~~~~~

* 修复 #1, 解决自测问题
* 结构化目录, 让代码清晰一点
* 链式调用部分用元类改写
* less/greater 添加 'below/above' 别名


v0.5.0
~~~~~~~~~~~~~~~~

* 删除原 `raises` 接口, 不再支持 with should.raises 语法
* `raises` 接口改为 `throw` 的等价接口
* `key` 会改变链式调用. 后续值为键所对应的值

v0.4.8
~~~~~~~~~~~~~~~~

* fix `throw` 在 2.* 只能接受 `str` 的问题
* 如 it(1).should.be.int 的类型断言, 不断言 property
* proper 和 own_proper 增加别名 property 和 own_property
* 增加 properties 和 own_properties. 对对象支持列表式断言
* 增加 keys, 对字典支持列表式断言

v0.4.7
~~~~~~~~~~~~~~~~

* 添加 `within` 接口
* should.py 文件中添加自文档
* 添加 `proper` / `own_proper` 接口

v0.4.6
~~~~~~~~~~~~~~~~

* fix #2. match 不支持多行
* 添加 `search` 接口, 与 `match` 等价, 但更贴近 Python re 的接口

v0.4.5
~~~~~~~~~~~~~~~~

* 增加 `match` 接口, 进行正则匹配断言
* 增加 `empty` 属性, 直接判断容器或序列是否为空
* 只有连接词, be, have 会出现在 Assertion Error 中
* `throw` 接口支持断言 throw 信息

v0.4.4
~~~~~~~~~~~~~~~~

* 安装失败修复

v0.4.3
~~~~~~~~~~~~~~~~

* 类型断言如 `it(1).should.be.int` 支持所有内建类型
* 添加 `instanceof` 断言, 支持其它类型或弱类型断言
* 链式调用 'be'/'have' 时, Error 信息正确显示 have 和 be
ttw 0.0.2
ttw - talking to whom? the python console util to track all your outcome connections In other words easily extendable network sniffer with some functionality to analyse requests
License: MIT
Keywords: sniffer,tcp,udp,icmp,traffic-analyser

Python console util to track all your outcome connections In other words easily extendable network sniffer with some functionality to analyse requests

command examples:

sudo python3 ttw.py --verbose=true --protocol=tcp --nic=wlan0
sudo python3 ttw.py --verbose=true --protocol=all
for now only IP family is going to be supported... 

By default all the requests will be logged in sqlite database called ttw in the same directory To edit this settings, or disable it completely open file called ttw.py and edit lines 27,28
abakus-status-checks 0.0.1
Abakus Status Checks
License: MIT
Keywords: Monitoring,Status Checks,Abakus

Abakus Status Checks
====================

.. image:: https://ci.frigg.io/eirsyl/abakus-status-checks.svg
    :target: https://ci.frigg.io/eirsyl/abakus-status-checks/last/
    :alt: Build Status

.. image:: https://ci.frigg.io/eirsyl/abakus-status-checks/coverage.svg
    :target: https://ci.frigg.io/eirsyl/abakus-status-checks/last/
    :alt: Coverage Status

This package is used together with Sensu_. Checks is managed with Puppet and reported to our #devops
channel on Slack.

Supported checks:

- CPU percent
- Load


Create a new check
------------------

- Create a new file in the abakus_checks/checks directory
- Import abakus_checks.utils.check.StatusCheck and use this as a base for your check.
- Give the check a name, decription and options

::

    name = 'load'
    description = 'Trigger errors based on load threshold. Load is divided by core count.'
    options = [
        click.option('--warning', default='2,1.5,1', type=str),
        click.option('--critical', default='3,2,1.5', type=str),
    ]

- Implement the run method. Call self.ok, self.warning, self.critical with a message based on the
result.

- Register the check in abakus_checks/cli.py. Import the check in the check import block and
register the check.

::

    from .checks import load
    register_check(load.LoadCheck)

- You can use the tests.test_case.CLITestCase to test the check. This TestCase has a .invoke
method you can use to call the check.

::

    class LoadCheckTestCase(CLITestCase):

        @mock.patch('os.getloadavg', return_value=(0, 0, 0))
        def test_load_ok(self, mock_loadavg):
            result = self.invoke(['load', '--warning /'3.2.1/''])
            self.assertEquals(result.exit_code, 0)

.. _Sensu: https://sensuapp.org/