Skip to main content

Mercury Graph

Python 3.8 Python 3.9 Python 3.10 Python 3.11 Python 3.12 Python 3.13 Apache 2 license Ask Me Anything !

What is this?

mercury-graph is a Python library that offers graph analytics capabilities with a technology-agnostic API, enabling users to apply a curated range of performant and scalable algorithms and utilities regardless of the underlying data framework. The consistent, scikit-like interface abstracts away the complexities of internal transformations, allowing users to effortlessly switch between different graph representations to leverage optimized algorithms implemented using pure Python, numba, networkx and PySpark GraphFrames.

mercury-graph cheatsheet

Try it without installation in Google Colab

  • mercury.graph methods using the FIFA dataset Open In Colab

    • Version without Spark Open In Colab
  • mercury.graph methods using the BankSim dataset Open In Colab

    • Version without Spark Open In Colab
  • Interactive graph visualization: The Moebius class Open In Colab

  • Graph-based feature engineering with mercury.graph Open In Colab

Install

pip install mercury-graph

Documentation

Testing

After installation, the test suite can be launched with coverage statistics from outside the source directory (packages pytest and coverage must be installed):

./test.sh

License

                         Apache License
                   Version 2.0, January 2004
                http://www.apache.org/licenses/

     Copyright 2021-23, Banco de Bilbao Vizcaya Argentaria, S.A.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

Contributing

If you can complete a new feature on your own (new feature, doc, tests, version bump, changelog), you can directly create a Pull request to the master branch. Of course, you will get help via the PR.

An easier way to contribute is to create a new issue. If the idea is accepted, we will create a branch for you and start working on how to implement it.

Help and support

Mercury project at BBVA

mercury-graph is a part of Mercury, a collaborative library developed by the Advanced Analytics community at BBVA that offers a broad range of tools to simplify and accelerate data science workflows. This library was originally an Inner Source project, but some components, like mercury.graph, have been released as Open Source.

If you're interested in learning more about the Mercury project, we recommend reading this blog post from BBVA AI Factory.

Release files for mercury-graph 3.2.6

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

Source distribution (sdist)

Source distribution for mercury-graph 3.2.6
File Size Uploaded
mercury-graph-3.2.6.tar.gz 5.0 MB Details

Release files / mercury-graph-3.2.6.tar.gz

Download URL mercury-graph-3.2.6.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
aea3670e90652f6c87520e93956d406ad04ea81faf1d0b07e8706484c0d90d90
BLAKE2b-256 checksum
How to use checksums
a75596608245739e7c2d962a3659cf0f578f727587ad347915035ec67c41f088
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

3.2.6 This release

1 release file

3.2.5

1 release file

3.2.4

1 release file

3.2.3

1 release file

3.2.2

1 release file

3.2.1

1 release file

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