Skip to main content

bwac - barentswatch API Client

The script in this repository allows to collect AIS messages send via the barentswatch REST API for AIS data.

Installation

Install from source:

git clone https://github.com/2maz/barentswatch-apiclient.git

python3 -m venv venv-barents-watch
. venv-barents-watch/bin/activate

pip install ./barentswatch-apiclient

Usage

Create an account and register a client (see http://developer.barentswatch.no/docs/appreg). Create a .env file with the credentials for accessing the

BARENTS_WATCH_CLIENT_ID=your@email.com:yourapp
BARENTS_WATCH_CLIENT_SECRET=XXXXX

To download data from the livestream by creating daily CSV files of the format AIS_YYYY_mm_dd.csv use

$> bwac live

To retrieve data from the historic api for a specific timeframe, which can be a maximum of 14 days in the past (this limit is set by barentswatch):

$> bwac historic --from-date 2026-04-14T00:00:00+00:00 --to-date 2026-04-15T23:59:59+00:00

License

This work is licensed under the BSD-3-Clause License. Data is made accessible via barentswatch.no and licensed under Norwegian License for Public Data (see also https://www.barentswatch.no/artikler/api-vilkar/).

Copyright

Copyright (c) 2025-2026 Simula Research Laboratory, Oslo, Norway

Acknowledgments

All data is provided by the live AIS API from barentswatch.no.

The development of this client is part of the EU-project AI4COPSEC which receives funding from the Horizon Europe framework programme under Grant Agreement N. 101190021.

Metadata

Release files for bwac 0.1.0

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

Source distribution (sdist)

Source distribution for bwac 0.1.0
File Size Uploaded
bwac-0.1.0.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bwac 0.1.0
File Interpreter ABI Platform
bwac-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / bwac-0.1.0.tar.gz

Download URL bwac-0.1.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bd69859f017c453692ec4175b1a03a2947e299331df812917b0240704200cc00
BLAKE2b-256 checksum
How to use checksums
84611f2b28e50d28a96afeb8543bea5b9a057609b52626feb2cf2d0028ace07a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.

Transparency log

Release files / bwac-0.1.0-py3-none-any.whl

Download URL bwac-0.1.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a802de9ab103e4761a6c34be10149dd27acd89c2ddc6a22cdd25b0e714bb8e9a
BLAKE2b-256 checksum
How to use checksums
4564252d5a47eda29d66844fd4898c649eab0e77a237ac5e320b4b3cac0b250f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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