Skip to main content

Python pydantic classes for FLOPS input/output and web service

Project description

FLOPS python

"Python pydantic classes for FLOPS input/output and web service"

Run from web service:

# Path to your input file
input_file = "your-input-file.in.json"

# Parse input file and update input values if needed
flops_input = flops.input_from_json_file(input_file)
flops_input.CONFIN.DESRNG = 1800

# Execute from web API
url = "https://your-python-web-service-url.net"
flops_output = flops.run_flops_api_from_input(flops_input, url)

# Process output
print(flops_output.OBJ_VAR_CONSTR_SUMMARY.RANGE)

Run locally:

# Path to your flops directory and input file
flops_directory = "path/to/flops/folder"
input_file = "your-input-file.in.json"

# Execute directly from file (generates test.out.json file)
flops.run_flops_from_json_file(input_file, flops_directory)

# Or parse input from  and update input values if needed Inspect output object.
flops_input = flops.input_from_json_file(input_file)
flops_input.CONFIN.DESRNG = 2200

# Execute locally
flops_output = flops.run_flops_from_input(flops_input, flops_directory)

# Process output
print(flops_output.OBJ_VAR_CONSTR_SUMMARY.RANGE)

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

flops_modern_interface-0.0.1.tar.gz (60.3 kB view details)

Uploaded Source

Built Distribution

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

flops_modern_interface-0.0.1-py3-none-any.whl (59.3 kB view details)

Uploaded Python 3

File details

Details for the file flops_modern_interface-0.0.1.tar.gz.

File metadata

  • Download URL: flops_modern_interface-0.0.1.tar.gz
  • Upload date:
  • Size: 60.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for flops_modern_interface-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4958b090cdf498509249eab3f36c8cc0a499ad15d9a092cc67a317a2f7b0cb40
MD5 d9770b3262abe935e505b97172cd263f
BLAKE2b-256 19fcc2a79211bed7d12f4a4dfd3533ad754062db8cdd16fc0aedc327f5f6c0aa

See more details on using hashes here.

File details

Details for the file flops_modern_interface-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flops_modern_interface-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a8116612c31ff524b15f46c95097d46a2fa951ec1444a1cda982cab2fe9994b
MD5 ca7968b0095d431a8541e4cca8a76df6
BLAKE2b-256 ca9a947bc7f9ba471dbee05de3cb07e1f097e30ce4559168cc2ace680ca73fef

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