Skip to main content

No project description provided

Project description

Zefir Analytics

The Zefir Analytics module was created by the authors of PyZefir for relatively inexpensive processing or conversion of raw data into user-friendly condition, such as a report or a set of graphs. Also, this module is a set of computational methods used in the endpoints of the Zefir Backend repository.

Setup Development Environment

Install repository from global pip index:

pip install zefir-analytics

Make setup

Check if make is already installed

make --version

If not, install make

sudo apt install make 

Make stages

Install virtual environment and all dependencies

make install

Run linters check (black, pylama)

make lint

Run unit and fast integration tests (runs lint stage before)

Make unit

Run integration tests (runs lint and unit stages before)

make test

Remove temporary directories such as .venv, .mypy_cache, .pytest_cache etc.

make clean

Available methods in Zefir Engine objects

  • source_params:
    • get_capex_opex
    • get_costs_per_tech_type
    • get_dump_energy_sum
    • get_emission
    • get_ets_cost
    • get_fuel_availability_per_tech
    • get_fuel_cost
    • get_fuel_cost_per_tech
    • get_fuel_usage
    • get_generation_demand
    • get_generation_sum
    • get_installed_capacity
    • get_load_sum
    • get_var_costs
  • aggregated_consumer_params:
    • get_aggregate_elements_type_attachments
    • get_aggregate_parameters
    • get_fractions
    • get_n_consumers
    • get_total_yearly_energy_usage
    • get_yearly_energy_usage
  • lbs_params:
    • get_lbs_capacity
    • get_lbs_fraction
  • line_params:
    • get_capacity
    • get_flow
    • get_transmission_fee

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

zefir-analytics-0.4.30.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

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

zefir_analytics-0.4.30-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

Details for the file zefir-analytics-0.4.30.tar.gz.

File metadata

  • Download URL: zefir-analytics-0.4.30.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for zefir-analytics-0.4.30.tar.gz
Algorithm Hash digest
SHA256 4047ab161ac900082d8ef7a6df0c501054ae78a9b53919279f80f4976d686cea
MD5 e85897440cd29cf1b4b28a45e39ba5c7
BLAKE2b-256 13e54b31911ebe53754299d086156d058a2086d62e35d2b09c0815290b9108af

See more details on using hashes here.

File details

Details for the file zefir_analytics-0.4.30-py3-none-any.whl.

File metadata

File hashes

Hashes for zefir_analytics-0.4.30-py3-none-any.whl
Algorithm Hash digest
SHA256 4ce5360e2e4f4a3d7916cee388983afc5fd339c0617aa282844da8a8aa5113a2
MD5 774da954f1b7ea39d1962ae0241a6b5d
BLAKE2b-256 9dbc1f72ca8f3e0725243f6ca1a7aa39b616699be10235c3a49132ffc58f9928

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