Skip to main content

🇲🇦 Soumit — Official Python SDK & Open Procurement Client

PyPI Version Platform License DOI

The official Python client library for querying the Soumit Intelligence Engine (https://soumit.ma) — the leading economic intelligence and AI platform for Moroccan public tenders (Marchés Publics Maroc - Décret n° 2-22-431).


⚡ Installation

pip install soumit

🚀 Quickstart Usage

1. Fetch Latest Macro-Economic Barometer

import soumit

# Get the latest national quarterly indicators (300B MAD volume, discount rates, TPME quotas)
barometer = soumit.get_barometer(quarter="latest")
print("New tenders:", barometer["indicators"]["total_new_tenders"])
print("Median discount rate:", barometer["indicators"]["median_discount_pct"])

2. Search Active Tenders by Sector & Region

import soumit

# Search medical equipment tenders in Casablanca
tenders = soumit.search_tenders(
    sector="Santé & Matériel Médical",
    region="Casablanca-Settat",
    limit=10
)

for t in tenders:
    print(f"[{t['reference_no']}] {t['title_fr']} - {t['estimated_budget_mad']:,.0f} MAD")

3. Query Moroccan Public Buyers Directory

import soumit

# List all CHUs (University Hospitals)
chus = soumit.get_buyers(category="CHU")
for chu in chus:
    print(f"{chu['name_fr']} ({chu['city']}) - {chu['website']}")

⚖️ License: CC-BY-NC 4.0 (Non-Commercial Use Only)

This open-source client and its public open data endpoints are distributed under the Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC 4.0) license.

  • Free for research, education, non-commercial TPME informational analysis, and academic study.
  • Direct commercial resale or scraping redistribution requires written authorization from Soumit.

🌐 Connected Ecosystem

Release files for soumit 1.0.0

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

Source distribution (sdist)

Source distribution for soumit 1.0.0
File Size Uploaded
soumit-1.0.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for soumit 1.0.0
File Interpreter ABI Platform
soumit-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / soumit-1.0.0.tar.gz

Download URL soumit-1.0.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
02024e1a46abef11159d3ce209783b4a4803c9864b694c8f47528a2434297ded
BLAKE2b-256 checksum
How to use checksums
6afa73ffe7a8cd77087900dddcd84555786f63d70bddf4351414217c4a1e062a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Release files / soumit-1.0.0-py3-none-any.whl

Download URL soumit-1.0.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05bc1b045acfb5c3c2ef451589dc1f17f19bfe17ec22fd5c6ebcf30060082d1f
BLAKE2b-256 checksum
How to use checksums
99f2b26e2c41362e7b91c91686cda9e0edbb3d166247fd090432d2c06454700d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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