Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

A python interface into the Cartola FC API

Project Description

Python Cartola FC API

A python interface into the Cartola FC API.

Table of contents

About this library

Cartola FC is a fantasy sport about football, meaning it is a fictional game in which people create their teams with real life football players. It was released in the year 2005.

Created and maintained by Globo.com and promoted by the cable TV channel Sportv, this virtual soccer game already has more than 3 million registered users. At the start of the 2016 season, the game recorded its best-ever scoring team in a single round in 12 years of fantasy history, an incredible 2,723,915 users set up their teams for the first round of the 2016 Brazilian Championship.

Thankfully the designers have provided an excellent and complete REST interface. This library wraps up that interface as more conventional python objects.

Python versions

The project have been tested and working on Python 2.7, 3.3, 3.4, 3.5 and 3.6.

Installation

From PyPI:

$ pip install Python-CartolaFC

Or by downloading the source and running:

$ python setup.py install

Latest git version:

$ pip install git+https://github.com/vicenteneto/python-cartolafc.git#egg=Python-CartolaFC

Example

Python-CartolaFC API is intended to map the objects in CartolaFC (e.g. Athlete, Club, League, Team) into easily managed Python objects:

>>> import cartolafc
>>> api = cartolafc.Api()
>>> team = api.get_team('falydos-fc')
>>> team.pontos
48.889892578125
>>> team.info.nome
u'Falydos FC'

More examples available on Github: https://github.com/vicenteneto/python-cartolafc/tree/master/examples

Contributors

Have a bug or a feature request? Please, open a GitHub issue.

Vicente Neto (creator) - https://github.com/vicenteneto

Release History

Release History

This version
History Node

0.3.13

History Node

0.2.19

History Node

0.2.18

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Python-CartolaFC-0.3.13.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Mar 13, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting