Skip to main content

Battlefield 1 SDK

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

Metadata

Release files for battlefield1-sdk 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for battlefield1-sdk 1.3
File Size Uploaded Provenance Actions
battlefield1-sdk-1.3.tar.gz 12.1 kB Without provenance Details for battlefield1-sdk-1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for battlefield1-sdk 1.3
File Interpreter ABI Platform Actions
battlefield1_sdk-1.3-py3-none-any.whl Python 3 none any Details for battlefield1_sdk-1.3-py3-none-any.whl

Total release size: 26.1 kB

Release files / battlefield1-sdk-1.3.tar.gz

Download URL battlefield1-sdk-1.3.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e8b93d7334df01cb90cae60ec85d7ade65c069fdb81edaf94e61f80f52ad7973
BLAKE2b-256 checksum
How to use checksums
11ec185e885bb7c354bae0c5710774cc5101869aa4d5de2e5c0542af625708fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / battlefield1_sdk-1.3-py3-none-any.whl

Download URL battlefield1_sdk-1.3-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1959185ec3cb8dce4d8d684c2e810683a6f41e173aa858a2b84ba269319a0b7
BLAKE2b-256 checksum
How to use checksums
c1cb88f93aabf698d39025167161dfc26f57c8c8deb8fe3d0eace9251899fd17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for battlefield1-sdk 1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page