Skip to main content

Data processing and analysis tools for fuel market research

Project description

StreamFuels

StreamFuels is a collection of updated fuel sales datasets for forecasting, classification, and pattern analysis, focusing on petroleum derivatives, natural gas, and biofuels market across different regions of Brazil.

monthly_sales_state(): Monthly fuel sales data by state from the ANP database

yearly_sales_state(): Yearly fuel sales data by state from ANP database

yearly_sales_city(): Yearly fuel sales data by city from ANP database

monthly_operations_state(): Monthly oil production, NGL production, natural gas production, reinjection, flaring and losses, self-consumption, and available natural gas. It provides a comprehensive view of petroleum and gas operations.

fuel_type_classification() Comprises 14,032 time series, each with a fixed length of 12 observations (i.e., one year of sales) and eight possible class labels.

Installation

pip install streamfuels

After that you can import using the target python environment:

from streamfuels.datasets import DatasetLoader
loader = DatasetLoader()
result, flag = loader.yearly_sales_state()

df, metadata = loader.read_tsf(path_tsf=result)

Yearly sales of petroleum derivatives in the states of Brazil.

result, flag = loader.yearly_sales_state()

image

Monthly sales of petroleum derivatives in the states of Brazil.

result, flag = loader.monthly_sales_state()

image

Monthly oil and gas operations in the states of Brazil.

result, flag = loader.monthly_operations_state()

image

Yearly sales of petroleum derivatives in the cities of Brazil.

result, flag = loader.yearly_sales_city()

image

Fuel Type Classification dataset

df = loader.fuel_type_classification()

image

Experimental results (April 2026)

Interactive Example Notebooks

You can explore practical use cases of the library directly via Google Colab or Binder.


Fuel Type Classification

  • Demonstrates how to use classification algorithms to identify the fuel type.

Open in Colab
Open in Binder


Time Series Forecasting

  • Shows how to perform time series forecasting using statistical and machine learning models.

Open in Colab
Open in Binder


Dataset Loading and Visualization

  • Explains how to load datasets and visualize key information graphically.

Open in Colab
Open in Binder


Motif Discovery and Visualization

  • Demonstrates how to identify and visualize repeating patterns (motifs) in time series data.

Open in Colab
Open in Binder


Notes

  • Colab is recommended for faster and more stable execution of Python notebooks.
  • Binder may take longer to build environments depending on dependencies.

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

streamfuels-0.1.7.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamfuels-0.1.7-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file streamfuels-0.1.7.tar.gz.

File metadata

  • Download URL: streamfuels-0.1.7.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for streamfuels-0.1.7.tar.gz
Algorithm Hash digest
SHA256 47720cc17e535455a51032dab7712814ecf9604ef388bd610c3a072cdcfed294
MD5 1191947cfc94c6d6a32d2766a9fdd8a3
BLAKE2b-256 ea3576df04c5fa11bee5166a031b5d4b2413d2149a6157fb27bb6499c3289f05

See more details on using hashes here.

File details

Details for the file streamfuels-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: streamfuels-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for streamfuels-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e4145c8d81b3b3c2e8e499d68c8fb384619b6b4a826c42dbc627b18ff8268424
MD5 aa018e499667e70edf50a76e3a49ddc0
BLAKE2b-256 3a031fd0fec2ca6a48303c6a05692ce0f4b1163bcab1b492114f9e0d46c6a744

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page