semvec/pypi-packages huggingface dataset:
fifbucket 0.10.2
Bitbucket Api Library
License: MIT
Keywords: bitbucket

# fifbucket 
[![Build Status](https://travis-ci.com/fiftech/fifbucket.svg?branch=master)](https://travis-ci.com/fiftech/fifbucket) [![Coverage Status](https://coveralls.io/repos/github/fiftech/fifbucket/badge.svg)](https://coveralls.io/github/fiftech/fifbucket) [![Pypi Status](https://pypip.in/v/fifbucket/badge.png)](https://pypi.python.org/pypi/fifbucket/) [![Pypi Download](https://pypip.in/d/fifbucket/badge.png)](https://pypi.python.org/pypi/fifbucket/) [![Pypi Wheel](https://pypip.in/wheel/fifbucket/badge.png)](https://pypi.python.org/pypi/fifbucket/)


**fifbucket** is a python library for call Bitbucket api: 
> Bitbucket Api Documentation: https://developer.atlassian.com/bitbucket/api/2/reference/resource/

## Configuration

Obligatory arguments

| Argument       |Description                              |
|----------------|-----------------------------------------|
|owner           |`Bitbucket repository owner`             |
|username        |`Bitbucket username`                     |
|password        |`Bitbucket user password or app password`|


## Basic usage
**How install**
```bash
pip install fifbucket
```

**How load the class:**
```python
# -*- coding: utf-8 -*-

OWNER="owner"
BITBUCKET_USER="username"
BUTBUCKET_PASSWORD="password"

from fifbucket.client import Bitbucket
bitbucket = Bitbucket(owner=OWNER, username=BITBUCKET_USER, password=BUTBUCKET_PASSWORD)
```
**get_repos(query) example:** list all repository from a project
* API info: [`https://api.bitbucket.org/2.0/repositories/{username}`](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D)
```python
PROJECT = 'PROJ'
QUERY = 'project.key="{}"'.format(PROJECT)
bitbucket.get_repos(query=QUERY)
```
**get_pr example(repo_slug, query) example:** list pull request info from a repo
* API info: [`https://api.bitbucket.org/2.0/repositories/{username}/{repository}/pullrequests`](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests)

```python
REPOSITORY = 'repository_slug'
bitbucket.get_pr_info(REPOSITORY)
```

**get_permissions_repo(repo_slug, query) example:** list info of all admins in a repository
* API info: [`https://api.bitbucket.org/2.0/teams/{username}/permissions/repositories`](https://developer.atlassian.com/bitbucket/api/2/reference/resource/teams/%7Busername%7D/repositories)

```python
REPOSITORY = 'repository_slug'
QUERY = 'permission="admin"'
bitbucket.get_permissions_repo(REPOSITORY, query=QUERY)
```
pytest-vcr 1.0.2
Plugin for managing VCR.py cassettes
License: MIT

##########
pytest-vcr
##########

|Travis| |AppVeyor| |ReadTheDocs|

.. |Travis| image:: https://travis-ci.org/ktosiek/pytest-vcr.svg?branch=master
    :target: https://travis-ci.org/ktosiek/pytest-vcr
    :alt: See Build Status on Travis CI
.. |AppVeyor| image:: https://ci.appveyor.com/api/projects/status/github/ktosiek/pytest-vcr?branch=master
    :target: https://ci.appveyor.com/project/ktosiek/pytest-vcr/branch/master
    :alt: See Build Status on AppVeyor
.. |ReadTheDocs| image:: https://readthedocs.org/projects/pytest-vcr/badge/?version=latest
    :target: http://pytest-vcr.readthedocs.io/en/latest/?badge=latest
    :alt: See the documentation


Py.test plugin for managing `VCR.py <https://vcrpy.readthedocs.io/>`_ cassettes.


Quick Start
===========

Install the plugin:

.. code-block:: sh

    pip install pytest-vcr


Annotate your tests:

.. code-block:: python

    @pytest.mark.vcr()
    def test_iana():
        response = urlopen('http://www.iana.org/domains/reserved').read()
        assert b'Example domains' in response

And that's it!
A new file ``cassettes/test_iana.yaml`` will be created next to your test file on the first run.
This file should be committed to a VCS.

For more examples and configuration options see the `documention on ReadTheDocs <http://pytest-vcr.readthedocs.io/en/latest/>`_.
easyexception 0.0.3
Easy-to-use custom error/warning/message exceptions.
License: MIT
Requires Python: >=3.0
Keywords: Exception,Easy

# easyexception

Conveniently submit and print an error, warning, or message from your codes, and specify where the error, warning, or message came from.

### Purpose
When one raise an exception in his/her program, or throws a warning, on the screen it is often unclear where the error/warning/message was initiated. This makes it hard for users of the program to troubleshoot the problem.

In **easyexception**, this is solved by a simple trick, we combine all kinds of screen messages into one function: \
`easyexception(origin, code, severity, msg)`\
where *severity* can be "Error", "Warning", or "Message"

### Usage
To use the `easyexception` function, import it in Python:

    from easyexception.exception import easyexception

The program developer just calls the function to define the above information and deliver the message to the user screen. e.g. if you are developing a calculator program and the user puts in a negative number and then presses "Square Root". You want to throw a warning but not to stop the program, you may do:

    easyexception("mymath.py", "calculate_sqrt(n)", "Warning",
    "Can not give the square root for a negative number")

The above assumes `easyexception` is called in function `calculate_sqrt(n)` in file mymath.py.

Or, if the user magically puts some texts in the input bar, and you hate it so much that you would like to raise an Error and stop the program. You may then do:

    easyexception("get_user_input.py", "eval_expr(eq)", "Error",
    "Texts are not allowed in the input bar!")

Similarly, the above assumes `easyexception` is called in function `eval_expr(eq)` in file get_user_input.py.

Finally, `severity="Message"` can be used if you want to notify the user that a calculation is complete, or the user has cleared the memory, etc.


### Installation
Install easyexception using `pip`, or `pip3`

    pip install easyexception

### Repository
[GitHub page](https://github.com/frankliuao/easyexception)