Skip to main content

Flow Production Tracking Python API

Project description

VFX Platform Python Reference Documentation Build Status Coverage Status

Flow Production Tracking Python API

Autodesk provides a simple Python-based API for accessing Flow Production Tracking and integrating with other tools. This is the official API that is maintained by Autodesk (https://knowledge.autodesk.com/contact-support)

The latest version can always be found at http://github.com/shotgunsoftware/python-api

Minimum Requirements

  • Python v3.7

Documentation

Tutorials and detailed documentation about the Python API are available at http://developer.shotgridsoftware.com/python-api).

Some useful direct links:

Changelog

You can see the full history of the Python API on the documentation site.

Updating HTTPLib2

The API comes with a copy of the httplib2 inside the shotgun_api3/lib folder. To update the copy to a more recent version of the API, you can run the update_httplib2.py script at the root of this repository like this:

python update_httplib2.py vX.Y.Z

where vX.Y.Z is a release found on httplib2's release page.

Tests

Integration and unit tests are provided.

  • All tests require:
  • A tests/config file (you can copy an example from tests/example_config).
  • Tests can be run individually like this: nosetests --config="nose.cfg" tests/test_client.py
    • Make sure to not forget the --config="nose.cfg" option. This option tells nose to use our config file. This will exclude python 2- and 3-specific files in the /lib directory, preventing a failure from being reported by nose for compilation due to incompatible syntax in those files.
  • test_client and tests_unit use mock server interaction and do not require a Flow Production Tracking instance to be available (no modifications to tests/config are necessary).
  • test_api and test_api_long do require a Flow Production Tracking instance, with a script key available for the tests. The server and script user values must be supplied in the tests/config file. The tests will add test data to your server based on information in your config. This data will be manipulated by the tests, and should not be used for other purposes.
  • To run all of the tests, use the shell script run-tests.

Release process

Packaging up new release

  1. Update the Changelog in the HISTORY.rst file
    • Add bullet points for any changes that have happened since the previous release. This may include changes you did not make so look at the commit history and make sure we don't miss anything. If you notice something was done that wasn't added to the changelog, hunt down that engineer and make them feel guilty for not doing so. This is a required step in making changes to the API.
    • Try and match the language of previous change log messages. We want to keep a consistent voice.
    • Make sure the date of the release matches today. We try and keep this TBD until we're ready to do a release so it's easy to catch that it needs to be updated.
    • Make sure the version number is filled out and correct. We follow semantic versioning.
  2. Ensure any changes or additions to public methods are documented
    • Ensure that doc strings are updated in the code itself to work with Sphinx and are correctly formatted.
    • Examples are always good especially if this a new feature or method.
    • Think about a new user to the API trying to figure out how to use the features you're documenting.
  3. Update the version value in python-api/setup.py to match the version you are packaging. This controls what version users will get when installing via pip.
  4. Update the __version__ value in shotgun_api3/shotgun.py to the version you're releasing. This identified the current version within the API itself.
  5. Commit these changes in master with a commit message like packaging for the vx.x.x release.
  6. Create a tag based off of the master branch called vx.x.x to match the version number you're releasing.
  7. Push master and your tag to Github.
  8. Update the Releases page with your new release.
    • The release should already be there from your tag but if not, create a new one.
    • Add more detailed information regarding the changes in this release. This is a great place to add examples, and reasons for the change!

Letting the world know

Post a message in the Pipeline Community channel.

Prepare for the Next Dev Cycle

  1. Update the __version__ value in shotgun_api3/shotgun.py to the next version number with .dev appended to it. For example, v3.0.24.dev
  2. Add a new section to the Changelog in the HISTORY.rst file with the next version number and a TBD date
    **v3.0.24 - TBD**
       + TBD
  1. Commit the changes to master with a commit message like Bump version to v3.0.24.dev
  2. Push master to Github

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

shotgun_api3-3.5.1.tar.gz (593.4 kB view details)

Uploaded Source

Built Distribution

shotgun_api3-3.5.1-py2.py3-none-any.whl (569.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file shotgun_api3-3.5.1.tar.gz.

File metadata

  • Download URL: shotgun_api3-3.5.1.tar.gz
  • Upload date:
  • Size: 593.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for shotgun_api3-3.5.1.tar.gz
Algorithm Hash digest
SHA256 4c46edce957cb1b3e438a5232b8ba3e24bbd960c088b656904f3eb0954907ef1
MD5 a256768bd33df8cddf7c5fff0b4f9d08
BLAKE2b-256 e4b97639ab068329a08e7be5c1b512200cf2c37b6e29e048da1545f452025f03

See more details on using hashes here.

File details

Details for the file shotgun_api3-3.5.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for shotgun_api3-3.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f7a230e230af2d6fe64f50df2cba4dbf35334a213c86a6b7587c9b1b4e5855e6
MD5 1ffef4b41675fce375829e72ca917724
BLAKE2b-256 7a63e4a5a470dc821b237e5b95977cb111c08f82c319833d89634c0bcba64809

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page