Skip to main content

CRUD Tools plugin for Fastpluggy

Project description

Fix for Plugin Import Path Issue

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 /home/jerome/PycharmProjects/fastpluggy/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.

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

fastpluggy_crud_tools-0.2.21.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

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

fastpluggy_crud_tools-0.2.21-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

Details for the file fastpluggy_crud_tools-0.2.21.tar.gz.

File metadata

  • Download URL: fastpluggy_crud_tools-0.2.21.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for fastpluggy_crud_tools-0.2.21.tar.gz
Algorithm Hash digest
SHA256 55ac64d13e901f6e0bf1394db496dc7bea27a4e0476882aa72245e07190ecfc2
MD5 bd1bcc52deec210cf776d004cda57cf2
BLAKE2b-256 7a3023d6ddf413d14ef59d08f9a4cc0f93de6a26c1239a1f0ff3ac8fd16bbcb7

See more details on using hashes here.

File details

Details for the file fastpluggy_crud_tools-0.2.21-py3-none-any.whl.

File metadata

File hashes

Hashes for fastpluggy_crud_tools-0.2.21-py3-none-any.whl
Algorithm Hash digest
SHA256 ef0ebbd5bf24e9f12e7d54af0f67bd98dc7c2fbc55cd5c4cf0d89d7d9a856e75
MD5 5fa3f009879d23b5a10beea3674104f1
BLAKE2b-256 f606fc8aa234b0c9d033f1ebaa5fb1938dd3643dd52c04cbed7afdae479cdcb1

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