Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Export metadata from the Isogeo REST API into Microsoft Word documents (.docx).
Python package to export Isogeo metadata into Word documents using the Python SDK and docxtpl.
Install:
pip install isogeo-export-docx
Authenticate
# import
from isogeo_pysdk import Isogeo
# API client
isogeo = Isogeo(
auth_mode="group",
client_id=ISOGEO_API_GROUP_CLIENT_ID,
client_secret=ISOGEO_API_GROUP_CLIENT_SECRET,
auto_refresh_url="{}/oauth/token".format(ISOGEO_ID_URL),
platform=ISOGEO_PLATFORM,
)
# getting a token
isogeo.connect()
Make a search:
search = isogeo.search(include="all",)
# close session
isogeo.close()
Export:
# import
from isogeotodocx import Isogeo2docx
# output folder
Path("_output/").mkdir(exist_ok=True)
# template
template_path = Path(r"tests\fixtures\template_Isogeo.docx")
# instanciate
toDocx = Isogeo2docx()
# parse results and export it
for md in search_results.results:
# load metadata as object
metadata = Metadata.clean_attributes(md)
# prepare the template
tpl = DocxTemplate(template_path.resolve())
# fill the template
toDocx.md2docx(docx_template=tpl, md=metadata)
# filename
md_name = metadata.title_or_name(slugged=1)
uuid = "{}".format(metadata._id[:5])
out_docx_filename = "_output/{}_{}.docx".format(md_name, uuid)
# save it
tpl.save(out_docx_filename)
# delete template object
del tpl
FAQs
Export metadata from the Isogeo REST API into Microsoft Word documents (.docx).
We found that isogeo-export-docx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.