Skip to main content

Fix for Plugin Import Path Issue

CRUD Tools Release Pipeline Status Coverage

Issue Description

There was an issue with the import path for the CrudToolsModule in the crud_tools plugin. The entry point in the package metadata specified the import path as fastpluggy_plugin.crud_tools.plugin:CrudToolsModule, but in the source code, the file was at fastpluggy_plugin/crud_tools/src/plugin.py. This caused the following import to fail:

import fastpluggy_plugin.crud_tools.plugin

While this import worked:

import fastpluggy_plugin.crud_tools.src.plugin

Solution

A new plugin.py file was created in the fastpluggy_plugin/crud_tools directory that imports and re-exports the CrudToolsModule from fastpluggy_plugin.crud_tools.src.plugin. This allows both import paths to work:

  • import fastpluggy_plugin.crud_tools.plugin (the expected path after installation)
  • import fastpluggy_plugin.crud_tools.src.plugin (the path in the source code)

Testing

A test script test_import.py was created to verify that both import paths work. You can run it with:

cd <project-root>/fastpluggy_plugin/crud_tools
python test_import.py

If the fix works, you should see output indicating that both imports were successful and that they refer to the same class.

Next Steps

After verifying that the fix works, you should rebuild and reinstall the package to ensure that the fix is included in the installed package.

Metadata

Release files for fastpluggy-crud-tools 0.2.29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastpluggy-crud-tools 0.2.29
File Size Uploaded Provenance Actions
fastpluggy_crud_tools-0.2.29.tar.gz 35.5 kB Without provenance Details for fastpluggy_crud_tools-0.2.29.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastpluggy-crud-tools 0.2.29
File Interpreter ABI Platform Actions
fastpluggy_crud_tools-0.2.29-py3-none-any.whl Python 3 none any Details for fastpluggy_crud_tools-0.2.29-py3-none-any.whl

Total release size: 82.0 kB

Release files / fastpluggy_crud_tools-0.2.29.tar.gz

Download URL fastpluggy_crud_tools-0.2.29.tar.gz
Size 35.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1a6cb0460a3c9c49292c780e2db9add863dfb666cf5343e32fb6b64984c3be02
BLAKE2b-256 checksum
How to use checksums
ad3c00f73c45040c5a2614cef39a90bdeb6b3b381cf14aa73396a784932a7565
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / fastpluggy_crud_tools-0.2.29-py3-none-any.whl

Download URL fastpluggy_crud_tools-0.2.29-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3532c9f77561a0af17605ca2edf7b4b12a72fe8a9ba6622ba525f4798f98d077
BLAKE2b-256 checksum
How to use checksums
5c5b6216d72883ea8645169b774830a1ea3d59a5bde47f2bce2a9007e4d24356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for fastpluggy-crud-tools 0.2.29

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.29 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page