Skip to main content

ckanext-pycharm-debugger

CKAN extension that provides PyCharm remote debugger session attachment

Based off the good work of https://github.com/NaturalHistoryMuseum/ckanext-dev/ which is now archived 6 years ago.

Not affiliated with JetBrains.

Pycharm is a trademark of JetBrains s.r.o.
This project is not affiliated with, endorsed by, or sponsored by JetBrains.
The trademark is used here only to describe the tool this extension integrates with, in accordance with fair use.
This project is licensed under the terms of the

Setup

To enable the remote debugger session, you need:

  1. Install the pydevd-pycharm.egg package on the remote machine (this file is part of the PyCharm distribution, see https://www.jetbrains.com/help/pycharm/remote-debugging-with-product.html)

or

bash pip install ckanext-python-debugger['PyCharm2025.1.1']'

or

bash pip install ckanext-python-debugger['PyCharm2024.1.4']'

or

bash pip install pydevd-pycharm ~= ##What your pycharm pro ide suggests##'

  1. Add the line 'debug.remote = True' to your configuration file (this is independent of Ckan's debug setting ; both can be enabled or disabled separately) ;

  2. Add the plugin ckan.plugins = ... pycharm_debugger to your configuration file.

  3. Setup a Remote Debugger within PyCharm, using port 5678 (or as defined by debug.host.port).

You may optionally define:

  • debug.remote.host.ip for the host IP (defaults to host.docker.internal which is the default host when using Docker) ;
  • debug.remote.host.port for the host port (defaults to 5678; it needs to match the setting in PyCharm) ;
  • debug.remote.stdout_to_server to send stdout to the debugging host (defaults to True) ;
  • debug.remote.stderr_to_server to send stderr to the debugging host (defaults to True) ;
  • debug.remote.suspend defines whether the debugger should break as soon as it is started (defaults to True).
  1. Ensure that pycharm remote debugging server is running on port 5678 (default) '

  2. Start CKAN

  cd test-infrasturcture
  docker compose exec ckan  ckan -c ckan.ini run -H 0.0.0.0
  1. If you wish to use in pytest, place the following above your test class
  @pytest.mark.ckan_config(u'ckan.plugins', u'pycharm_debugger')
  @pytest.mark.ckan_config(u'debug.remote', u'True')

Requirements

Compatibility with core CKAN versions:

CKAN version Compatibility
2.7 untested
2.8 untested
2.9 untested
2.10 yes
2.11 yes
master yes as of 2025/05 (check test results)

License

Not affiliated with JetBrains.

Pycharm is a trademark of JetBrains s.r.o.
This project is not affiliated with, endorsed by, or sponsored by JetBrains.
The trademark is used here only to describe the tool this extension integrates with, in accordance with fair use.
This project is licensed under the terms of the

GNU Affero General Public License v3.0 (AGPL-3.0)

See the LICENSE file for full details.

Metadata

Release files for ckanext-pycharm-debugger 0.0.1

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

Source distribution (sdist)

Source distribution for ckanext-pycharm-debugger 0.0.1
File Size Uploaded
ckanext_pycharm_debugger-0.0.1.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ckanext-pycharm-debugger 0.0.1
File Interpreter ABI Platform
ckanext_pycharm_debugger-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 37.5 kB

Release files / ckanext_pycharm_debugger-0.0.1.tar.gz

Download URL ckanext_pycharm_debugger-0.0.1.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f57312db639e877b00e4707b47ba65cf2d09d52b133e83a5705fe2183498742e
BLAKE2b-256 checksum
How to use checksums
9d3fc3015a2c51aeeb06510349054f1c72d00c321225fb852bde72c5b1eaece8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2025.

Transparency log

Release files / ckanext_pycharm_debugger-0.0.1-py3-none-any.whl

Download URL ckanext_pycharm_debugger-0.0.1-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04ae307568a65b5c8912772c89903086adcb1b6fbf5e71e777237d533ea81e28
BLAKE2b-256 checksum
How to use checksums
8ae3952f8de1309f810b5d87caf01441c6110887b3fcf1581732002943d550fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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