
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
The Python SDK supports the use of the Nitric framework with Python 3.11+. For more information check out the main Nitric repo.
Python SDKs provide an infrastructure-from-code style that lets you define resources in code. You can also write the functions that support the logic behind APIs, subscribers and schedules.
You can request the type of access you need to resources such as publishing for topics, without dealing directly with IAM or policy documents.
Install the Nitric CLI, then generate your project:
nitric new hello-world py-starter
First of all, you need to install the library:
pip
pip3 install nitric
pipenv
pipenv install nitric
Then you're able to import the library and create cloud resources:
from nitric.resources import api, bucket
from nitric.application import Nitric
from nitric.context import HttpContext
publicApi = api("public")
uploads = bucket("uploads").allow("write")
@publicApi.get("/upload")
async def upload(ctx: HttpContext):
photo = uploads.file("images/photo.jpg")
url = await photo.upload_url()
ctx.res.body = {"url": url}
Nitric.run()
Learn more by checking out the Nitric documentation.
Join us on Discord
Ask questions in GitHub discussions
Find us on Twitter
Send us an email
FAQs
The Nitric SDK for Python 3
We found that nitric 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.