Skip to main content

The Python package for econometric analysis.

Project description

EconomPy - The Econometric Python Library

Python License: MIT Build codecov Documentation

The motivation behind the EconomPy library is to provide a set of tools for econometric analysis in Python. Instead of using R (Studio) or Stata for econometric analysis, the goal is to provide a Python alternative.

The EconomPy library is a collection of econometric functions and classes written in Python. The library is designed to be used in conjunction with the Pandas library.

Installation

For the latest stable version, install from PyPi:

# Create a virtual environment
python -m venv .venv

# Activate the virtual environment
source .venv/bin/activate

# Install the package from PyPi
pip install econompy

Usage

import econompy as ep

Development

To contribute to the development of EconomPy, clone the repository and install the development dependencies.

Install the Development Dependencies

# Clone the repository
git clone https://github.com/malill/econompy.git

# Create a virtual environment
python -m venv .venv

# Install the development dependencies
pip install -r requirements-dev.txt

# Install the package in editable mode
pip install -e .

Use pre-commit hooks

The pre-commit hooks are used to ensure that the code is formatted correctly and that the tests pass before committing the code.

# Install the pre-commit package
pre-commit install

# (To locally) Run the pre-commit hooks
pre-commit run --all-files

Run Code Coverage

You can test the code coverage by running the following command:

# Run the code coverage
pytest --cov=econompy --cov-report=html

This will generate a HTML report in the htmlcov folder. Inspect the report by opening the index.html file in your browser.

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

econompy-0.1.0.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distribution

econompy-0.1.0-py3-none-any.whl (4.9 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