Skip to main content

No project description provided

Project description

fractal-model-api

A small Python client for interactions with the Fractal Model API.

Requirements

  • Python 3.8+
  • Microsoft Excel (Desktop edition):
    • Windows: Excel 2010+
    • macOS: Excel 2016+

Installation

Install the package (and optionally python-dotenv if you prefer using a .env file):

pip install fractal-model-api python-dotenv

Usage

This project does not automatically load a .env file. You must either set the required environment variables on your system or explicitly load the .env file from your script.

  1. Create a file named .env in the project root with your API credentials:
FM_API_KEY=your_api_key_here
FM_API_SECRET=your_api_secret_here

2a. Easiest for non-technical users — add one line to your script to load the .env file (requires python-dotenv):

import asyncio
from dotenv import load_dotenv

load_dotenv()  # loads environment variables from ` .env`

from fractal_model_api import FractalModelAPIClient

async def main():
    client = FractalModelAPIClient()
    optimized = await client.get_optimized_schedule_lt(file_path="path/to/your/input_file")
    print(optimized)

if __name__ == "__main__":
    asyncio.run(main())

2b. Or set environment variables in your terminal before running your script:
For linux:

export FM_API_KEY=your_api_key_here
export FM_API_SECRET=your_api_secret_here
python your_script.py

For Windows (cmd):

set FM_API_KEY=your_api_key_here
set FM_API_SECRET=your_api_secret_here
python your_script.py

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

fractal_model_api-0.2.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

fractal_model_api-0.2.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file fractal_model_api-0.2.1.tar.gz.

File metadata

  • Download URL: fractal_model_api-0.2.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.6 Linux/6.18.37-1-lts

File hashes

Hashes for fractal_model_api-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1ae7339315ec4e8d168fd2ff04578f454869477fc31ec87d530927e52adc9956
MD5 000d122c3bb1e589f7c51242acd33af6
BLAKE2b-256 7189b59daa5f8b410d54828b892d20e9c689465c10c90b4606507a9a67104cd9

See more details on using hashes here.

File details

Details for the file fractal_model_api-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: fractal_model_api-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.6 Linux/6.18.37-1-lts

File hashes

Hashes for fractal_model_api-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26666583e3cd5b3c9c3e4fca15397505ad041f7657761b58ac77ee35e473e959
MD5 3116313add8c5be6a8e2178e27c26922
BLAKE2b-256 0213ca01ffe3ba14b0215ea6c7926d4b459b6ced7ce3263845d4a35bf186f7d9

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