Skip to main content

Battlefield 1 sdk

Project description

Build Status Test Coverage

Setup

From the command line:

pip install battlefield1-sdk

Usage

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

Examples

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

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

battlefield1-sdk-1.3.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

battlefield1_sdk-1.3-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file battlefield1-sdk-1.3.tar.gz.

File metadata

File hashes

Hashes for battlefield1-sdk-1.3.tar.gz
Algorithm Hash digest
SHA256 e8b93d7334df01cb90cae60ec85d7ade65c069fdb81edaf94e61f80f52ad7973
MD5 58406426b2f547973027873ca2c7a352
BLAKE2b-256 11ec185e885bb7c354bae0c5710774cc5101869aa4d5de2e5c0542af625708fa

See more details on using hashes here.

File details

Details for the file battlefield1_sdk-1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for battlefield1_sdk-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b1959185ec3cb8dce4d8d684c2e810683a6f41e173aa858a2b84ba269319a0b7
MD5 ad80252afeed4b0ebd7c874f5425190b
BLAKE2b-256 c1cb88f93aabf698d39025167161dfc26f57c8c8deb8fe3d0eace9251899fd17

See more details on using hashes here.

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