Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
superset-pdf-report is a Python tool for downloading charts from the Apache Superset API or URLs to generate a PDF report via LaTeX and send it via e-mail.
There are two possiblilities for using this tool:
Use the package manager pip to install superset-pdf-report.
pip install superset-pdf-report
Open config.py in supersetpdfreport and enter the needed information or use the suggested environment variables.
Create a <your_job>.json
in supersetpdfreport/jobs
Please refer to the example_job.json
Insert in superset_config.py
Celery config:
CELERY_IMPORTS += ("supersetpdfreport.task",)
CELERYBEAT_SCHEDULE.update(
{
"reports.pdf-scheduler": {
"task": "reports.pdf-scheduler",
"schedule": crontab(minute="*"),
}
}
)
You have to restart your Apache Superset application for this changes.
Create a start.py
from supersetpdfreport.pdf_report import PDF_report
job_name = "<your job>.json"
pdf_report_task = PDF_report()
pdf_report_task.execute(job_name)
Start the Python script
python3 start.py
FAQs
For generating a pdf-report with apache-superset charts
We found that superset-pdf-report demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.