semvec/pypi-packages huggingface dataset:
cert-schema_pastday 2.0b1
tools for working with blockchain certificates
License: MIT

[![Build Status](https://travis-ci.org/blockchain-certificates/cert-schema.svg?branch=master)](https://travis-ci.org/blockchain-certificates/cert-schema)
[![PyPI version](https://badge.fury.io/py/cert-schema.svg)](https://badge.fury.io/py/cert-schema)

# cert-schema

The cert-schema project contains the Blockchain Certificate JSON schema and JSON LD specification.
These are extensions to [Open Badges](http://openbadges.org/) schemas allowing the entire
certificate contents to be registered and verified on a blockchain.

The cert-schema python package allows verification of a Blockchain Certificate against the JSON
schemas. This is not the same as validating the contents of a certificate against what is stored
on the blockchain. See the cert-verifier project.


## JSON LD

In 1.2 we've added a JSON LD schema to provide semantically rich linked data.

[Certificate JSON LD](cert_schema/schema/1.2/context.json)

## JSON Schema Raw

- [Blockchain Certificate JSON Schema](cert_schema/schema/1.2/blockchain-certificate-1.2.json)
  - [Certificate Document JSON Schema](cert_schema/schema/1.2/certificate-document-1.2.json)  
    - [Assertion JSON Schema](cert_schema/schema/1.2/assertion-1.2.json)
    - [Certificate JSON Schema](cert_schema/schema/1.2/certificate-1.2.json)
        - [Issuer JSON Schema](cert_schema/schema/1.2/issuer-1.2.json) 
  - [Blockchain Receipt JSON Schema](cert_schema/schema/1.2/blockchain-receipt-1.2.json)
- [Issuer Identification JSON Schema](cert_schema/schema/1.2/issuer-id-1.2.json)


## Running the python code locally

1. Ensure you have an python environment. [Recommendations](https://github.com/blockchain-certificates/developer-common-docs/blob/master/virtualenv.md)

2. Git clone the repository and change to the directory

  ```bash
  git clone https://github.com/blockchain-certificates/cert-schema.git && cd cert-schema
  ```

3. Run cert-schema setup

  ```bash
  pip install .
  ```


## Publishing package to pypi

- [First time info](http://peterdowns.com/posts/first-time-with-pypi.html)
- Publish script: `./release_package.sh`



## Unit tests

This project uses tox to validate against several python environments.

1. Ensure you have an python environment. [Recommendations](https://github.com/blockchain-certificates/developer-common-docs/blob/master/virtualenv.md)

2. Run tests
    ```
    ./run_tests.sh
    ```


## Compile markdown from schema

Note that json-schema-to-markdown doesn't handle ref schemas well, so you will 
need to manually update any 'undefined' references.

`scripts/generate_markdown.js` builds the markdown-formatted schemas from json

## Contact

Contact [info@blockcerts.org](mailto:info@blockcerts.org) with questions
echarts 0.0.0
A echarts Python project
License: MIT
Keywords: echarts

A sample Python project
=======================

A sample project that exists as an aid to the `Python Packaging User Guide
<https://packaging.python.org>`_'s `Tutorial on Packaging and Distributing
Projects <https://packaging.python.org/en/latest/distributing.html>`_.

This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.

----

This is the README file for the project.

The file should use UTF-8 encoding and be written using `reStructuredText
<http://docutils.sourceforge.net/rst.html>`_. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.

Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple "What's New" section for the most recent version
may be appropriate.
dock 0.0.1
Batch job queue for ML inference.
License: MIT
Keywords: text nlp machine-learning

# dock

Wrapper around Redis for message queues.

## Installation

```bash
pip install dock  # pypi
pip install git+https://github.com/vzhong/dock.git  # github
```

## Usage

First, start your Redis server.

```python
# server.py
from dock import Dock
dock = Dock('test')

while True:
    msg, respond = dock.recv()
    print(msg, respond)
    print('got message {}'.format(msg))
    respond({
      'ack': msg,
      'msg': 'hello'
    })
```

```python
# client.py
from dock import Dock
dock = Dock('test')

for i in range(5):
    answer = dock.send('message{}'.format(i))
    print(answer)
```

You can see how the server and client interact by running the two files:

```bash
python server.py  # in one terminal
python client.py  # in another terminal
```
timepiece 0.2.6
Thin DSL for creating time scheduling specifications
License: MIT
Keywords: scheduling time specification

TimePiece
=========

A DSL to assist with writing specifications describing intervals and durations
of time with filters.

.. image:: https://travis-ci.org/delfick/timepiece.png?branch=master
    :target: https://travis-ci.org/delfick/timepiece

Why the name?
-------------

Because time_spec was uninspiring and a good friend suggested `timepiece`.

Naming things is difficult!

But why?
--------

Because I wanted to represent when scheduled actions should take place and I
was starting to have too many columns in my database representing everything I
wanted to be able to do.

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

Use pip!:

.. code-block:: bash

    pip install timepiece

Or if you're developing it:

.. code-block:: bash

    pip install -e .
    pip install -e ".[tests]"

Usage
-----

Just create the timepiece and give it a specification!

.. code-block:: python

    from timepiece.spec import make_timepiece

    from datetime import datetime

    timepiece = make_timepiece()

    obj = timepiece.time_spec_to_object("between(start: now()) & interval(every: amount(num:1 size: hour))")

    print("Next time is: ", obj.following(datetime.utcnow()))

See The docs at https://timepiece.readthedocs.io for more information!

Tests
-----

To run the tests in this project, just use the helpful script:

.. code-block:: bash

    ./test.sh

Or run tox:

.. code-block:: bash

    tox
jsonfeedvalidator 0.0.3
A JSON feed validator
License: MIT

JSON Feed Validator
===================

This is a preview release of a JSON Feed validator


Example
-------

.. code-block:: python

    >>> import requests
    >>> from jsonfeedvalidator import validate_feed, format_errors, ErrorTree
    >>> resp = requests.get("https://daringfireball.net/feeds/json")
    >>> validate_feed(resp.json())
    []
    >>> feed = {"items": [{"attachments": [{}]}]}
    >>> errors = validate_feed(feed)
    >>> format_errors(feed, ErrorTree(errors))
    {
        'items': {
            0: {
                'errors': {
                    'required': [
                        "'id' is a required property"
                    ]
                },
                'attachments': {
                    0: {
                        'errors': {
                            'required': [
                                "'mime_type' is a required property",
                                "'url' is a required property"
                            ]
                        }
                    }
                }
            }
        },
        'errors': {
            'required': [
                "'title' is a required property",
                "'version' is a required property"
            ]
        }
    }