semvec/pypi-packages huggingface dataset:
terra-core 0.8.0
Python library for Terra Core
License: MIT
Requires Python: >=3.6,<4.0
Keywords: terra,sdk

# Terra-py

[![CircleCI](https://circleci.com/gh/terra-project/terra-py/tree/develop.svg?style=svg&circle-token=5f2dc128a3b81385969b69b77db1ed45d9163b5c)](https://circleci.com/gh/terra-project/terra-py/tree/develop)
[![codecov](https://codecov.io/gh/terra-project/terra-py/branch/develop/graph/badge.svg?token=mYwZ5wP3oU)](https://codecov.io/gh/terra-project/terra-py)


Python library for Terra Core

**NOTE:** This is an early version and interface changes could occure until `v1.0.0`.

Please heads-up to the [documentation](http://terra-project.github.io/terra-py) for complete modules description and more details.

## Installation

Virtualenv:
```shell
virtualenv -p python3.6 .venv  # if not already created
source .venv/bin/activate
pip install terra-core
```

Poetry:
```shell
poetry add terra-core
```

Pipenv
```shell
pipenv install terra-core
```

## Example

```python
import os

from terra import Account
from terra import api
from terra import msg

acc = Account(os.getenv('MNEMONIC'))
# or generate a new one
# acc = Account.generate()

delegate = msg.staking.MsgDelegate(
    delegator_address=acc.account_address,
    validator_address='terravaloper1p54hc4yy2ajg67j645dn73w3378j6k05vmx9r2',
    amount=msg.Coin(amount='10000', denom='uluna')
)

tx = msg.Tx(
    fee=msg.Fee('10000', [msg.Coin('2000', 'uluna')]),
    memo='Delegating my LUNA tokens',
    msg=[delegate],
)

tx.sign_with(acc)

res = tx.broadcast()
```

Complete api in the [documentation](http://terra-project.github.io/terra-py).

## Develop

To contribute to terra-py developement, please check how to contribute in the [documentation](http://terra-project.github.io/terra-py/contribute/)
django-data-tests 0.6.0
A Django app for specifying validation tests on data in your database.
License: MIT
Keywords: django-data-tests

=============================
Django Data Tests
=============================

.. image:: https://badge.fury.io/py/django-data-tests.svg
    :target: https://badge.fury.io/py/django-data-tests

.. image:: https://travis-ci.org/andrewbird2/django-data-tests.svg?branch=master
    :target: https://travis-ci.org/andrewbird2/django-data-tests

.. image:: https://codecov.io/gh/andrewbird2/django-data-tests/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/andrewbird2/django-data-tests

A Django app for specifying validation tests on data in your database.



Quickstart
----------

Install Django Data Tests::

    pip install django-data-tests

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'data_tests.apps.DataTestsConfig',
        ...
    )

Add a data test to one of your existing models

.. code-block:: python

    from data_tests.registry import test_method
    from django.db import models

    class Cat(models.Model):
        ...

        def make_noise(self):
            return 'Miaow!'

        @test_method('Check the cat miaows appropriately')
        def check_cat_sound(self):
            noise = self.noise()
            if noise != 'Miaow!':
                return False, 'Cat made the wrong noise: %s' % noise
            else:
                return True

You can run your data tests with the management command

.. code-block:: bash

    ./manage.py rundatatests

Alternatively, run them whenever the object is saved in the admin

.. code-block:: python

    from django.contrib import admin
    from data_tests.admin import DataTestsAdminMixin

    class CatAdmin(DataTestsAdminMixin, admin.ModelAdmin):
        ...






History
-------

0.1.0 (2019-11-18)
++++++++++++++++++

* First release on PyPI.