Export Camera Animation is a Blender add-on that exports camera and marker data to a Python script. It adds an entry under File → Export → Cameras & Markers (.py), and during export it requests access to the directory where the .py file is written.
The add-on was originally created by Campbell Barton and shipped as one of Blender's bundled 4.1 add-ons. It is now offered on its own on blender_extensions, maintained as-is with limited support.
The current release is version 0.1.2, published in May 2024, and is compatible with Blender 4.2 LTS and newer. It is distributed under the GNU General Public License v2.0 or later. You can add it by dragging and dropping the extension into Blender or by downloading it and installing from disk. For the full version history and documentation, refer to the developer's page on the projects.blender.org extensions listing.