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_generation_sum
    • get_dump_energy_sum
    • get_load_sum
    • get_installed_capacity
    • get_generation_demand
    • get_fuel_usage
    • get_capex_opex
    • get_emission
  • aggregated_consumer_params:
    • get_fractions
    • get_n_consumers
    • get_yearly_energy_usage
    • get_total_yearly_energy_usage
    • get_fractions
  • lbs_params:
    • get_lbs_fraction
    • get_lbs_capacity
  • line_params:
    • 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.1.tar.gz (47.7 kB view hashes)

Uploaded Source

Built Distribution

zefir_analytics-0.4.1-py3-none-any.whl (42.5 kB view hashes)

Uploaded Python 3

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