Skip to content

The Field Manager (FM) Python client is a library designed to provide developers with programmatic access to the Field Manager API.

Notifications You must be signed in to change notification settings

norwegian-geotechnical-institute/field-manager-python-client

Repository files navigation

Field Manager Python Client 🚀

A lightweight, Pythonic library for interacting with the Field Manager API — quickly retrieve project data, manage locations, and automate workflows, all from Python.

✨ Why Use This Client?

  • Easy Integration: Each endpoint is ready to use—no manual HTTP calls needed.
  • Auto-Generated & Up-to-Date: Always in sync with the latest Field Manager API updates.
  • Full Coverage: Access every endpoint and model the Field Manager platform provides.

⚙️ Installation & Setup

  1. Install the package:

    pip install field-manager-python-client
  2. Authenticate: - Use the authenticate function to handle token retrieval automatically. This function will fetch a new token if the current one is expired or missing.

    from field_manager_python_client.api.projects import get_project_projects_project_id_get
    from examples.setup_auto_fetch_token import authenticate
    
    client = authenticate()  # Handles token retrieval

🚀 Quick Example

  1. Here's a quick example of how to fetch project information using the client:

    from field_manager_python_client.api.projects import get_project_projects_project_id_get
    from examples.setup_auto_fetch_token import authenticate
    
    client = authenticate()
    project_id = "your-project-id"
    project_info = get_project_projects_project_id_get.sync(client=client, project_id=project_id)
    
    print(f"Project Name: {project_info.name}")

📂 Explore More Examples

  • Check out the examples folder for scripts demonstrating how to:

    • Fetch organization(s)

    • Manage locations

    • Compare data sets and more

🤝 Contributing

We welcome issues, bug reports, and feature requests!


Have fun building with the Field Manager Python Client! If you have questions or need help, feel free to open an issue. Happy coding! ✨

About

The Field Manager (FM) Python client is a library designed to provide developers with programmatic access to the Field Manager API.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages