Metadata-Version: 2.0
Name: battlefield1-sdk
Version: 1.3
Summary: Battlefield 1 sdk
Home-page: UNKNOWN
Author: Alessandro De Angelis
Author-email: alessandrodea22@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: Battlefield 1 SDK
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: requests
Requires-Dist: pyOpenSSL

=================
Battlefield 1 SDK
=================
.. image:: https://img.shields.io/travis/Girbons/battlefield1-sdk/master.svg?style=flat-square
    :target: https://travis-ci.org/Girbons/battlefield1-sdk
    :alt: Build Status
.. image:: https://img.shields.io/coveralls/Girbons/battlefield1-sdk/master.svg?style=flat-square
    :target: https://coveralls.io/github/Girbons/battlefield1-sdk?branch=master
    :alt: Test Coverage


Setup
=====

From the command line::

    pip install battlefield1-sdk

Usage
======

GET API_KEY: https://battlefieldtracker.com/site-api/create

Examples
========

.. code-block:: python

    from bf1.battlefield import Battlefield
    # PLATFORM AVAILABLES
    # 'xbox'
    # 'playstation'
    # 'pc'
    bf = Battlefield(username='YOUR USERNAME', api_key='YOUR API KEY', platform='YOUR PLATFORM')

    # STATS SERVICE
    bf.stats_service.basic_stats()
    bf.stats_service.detailed_stats()
    bf.stats_service.career_for_owned_games()

    # PROGRESSION SERVICE
    bf.progression_service.get_codex()
    bf.progression_service.get_dog_tags()
    bf.progression_service.get_filtered_codex()
    bf.progression_service.get_kit_ranks_map()
    bf.progression_service.get_medals()
    bf.progression_service.get_vehicle(vehicle='mark v landship')
    bf.progression_service.get_vehicles()
    bf.progression_service.get_weapon(weapon='c93')
    bf.progression_service.get_weapons()

    # LOADOUT SERVICE
    bf.loadout_service.get_items()
    bf.loadout_service.get_items_gates()
    bf.loadout_service.get_kits()
    bf.loadout_service.get_presets()
    bf.loadout_service.get_equipped_dog_tags()

    # response format is in JSON

Run Tests
=========

Export your API_KEY::

    export API_KEY='YOUR API KEY'

Run tox::

    tox


