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.2.tar.gz (60.5 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.2-py3-none-any.whl (59.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flops_modern_interface-0.0.2.tar.gz
  • Upload date:
  • Size: 60.5 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.2.tar.gz
Algorithm Hash digest
SHA256 df97981712d116e71dd9ae612ce6f647d6302f4aff02ea475d234a82cd5085f6
MD5 f77c85971373c13bd25de41d06cb7d64
BLAKE2b-256 74fbb71d1beca01e4269c154965d8fbdf11a264793d3e29e72b6c2751c0a73b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flops_modern_interface-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b2fe6a4e7034b8792ef3eac97056625588d188cef9ef85aefd412fc86140f70d
MD5 63bc48de103995aaef9765a46e3af5f4
BLAKE2b-256 4bfb9b54cb5674226e159b767a7884640e0ba9eae005059b33ecef541b8eb0de

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