Skip to main content

No project description provided

Project description

CCEyes Library

Introduction

CCEyes is a Python CLI and library for the CCEyes project that allows you to easily access the CCEyes API as a provider.

Installation

pip install cceyes

Usage

CLI

root@cceyes:~$ cceyes key
Enter your API key:
API key saved! 
root@cceyes:~$ cceyes datasets | jq
{
  "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "datasets": [
    {
      "provider": "BetaSeries",
      "type": "TV Series"
    }
  ]
}
root@cceyes:~$ cat ~/productions.json | cceyes upsert | jq
{
  "success": true
}

Library

import cceyes
from cceyes.models import Production, ProductionDataset, ProductionMeta

cceyes.config.set_config('api', 'key', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# your ETL logic goes here
# examples are located in examples/ folder
productions = [Production(
    title="The Mandalorian",
    content="The travails of a lone gunfighter in the outer reaches of the galaxy, far from the authority of the New Republic.",
    dataset=ProductionDataset(
        type="TV Series",
        provider="BetaSeries",
    ),
    meta=ProductionMeta(
        id=68726,
        title="The Mandalorian",
        image="https://api.betaseries.com/pictures/shows?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&id=68726",
    ),
)]

cceyes.providers.upsert(productions)

License

MIT

Resources

Funding

Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or EACEA. Neither the European Union nor the granting authority can be held responsible for them.Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or EACEA. Neither the European Union nor the granting authority can be held responsible for them.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cceyes-0.2.5.tar.gz (27.4 kB view hashes)

Uploaded Source

Built Distribution

cceyes-0.2.5-py3-none-any.whl (13.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page