npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@packyak/packyak

v0.1.3

Published

[![PyPI version](https://badge.fury.io/py/packyak.svg)](https://badge.fury.io/py/packyak)

Downloads

5

Readme

PackYak image

PyPI version

Packyak makes it easy to build Lakehouses, Data Pipelines and and AI applications on AWS.

Roadmap

  • [x] StreamlitSite - deploy a Streamlit application to ECS with VPC and Load Balancing
  • [ ] Infer least privilege IAM Policies for Streamlit scripts (home.py, pages/*.py)
  • [x] @function - host an Lambda Function
  • [x] Infer least privilege IAM Policies for functions
  • [x] Bucket - work with files in S3, attach event handlers
  • [x] Queues - send messages to, attach event handlers
  • [ ] Stream - send and consume records through AWS Kinesis
  • [ ] Table - store structured data (Parquet, Orc, etc.) in a Glue Catalog. Model data using pydantic
  • [ ] @asset - build data pipelines with dependency graphs
  • [ ] @train - capture the inputs and outputs of a function for ML training and human feedback
  • [ ] Generate audit reports for HIPAA and GDPR compliance policies

Installation

Pre-requisites

  1. Docker (for bundling Python applications for the target runtime, e.g. in an Amazon Linux Lambda Function)
  2. Python Poetry
curl -sSL https://install.python-poetry.org | python3 -
  1. poetry-plugin-export - see https://python-poetry.org/docs/plugins/#using-plugins
poetry self add poetry-plugin-export

How To: Deploy Streamlit

Custom Domain

  1. Create a Hosted Zone
  2. Transfer the DNS nameservers from your DNS provider to the Hosted Zone
  3. Create a Certificate

HTTPS

  1. Create a Certificate via the AWS Console

Example

🔧 Note: Packyak is in active development. Not all features are implemented. Check back to see the following example grow.

Below is the most simple Packyak application: a Bucket with a Function that writes to it.

Your application's infrastructure is declared in code. The Packyak compiler analyzes it to auto-provision cloud resources (in this case AWS S3 Bucket and Lambda Function) with least privilege IAM Policy inference.

from packyak import Bucket, function

videos = Bucket("videos")

@function()
async def upload_video():
    await videos.put("key", "value")

@videos.on("create")
async def on_uploaded_video(event: Bucket.ObjectCreatedEvent):
  video = await videos.get(event.key)
  transcription

@asset()
async def transcribed_videos():
  ...

Nessie Setup

TODO: should be done as part of packyak init

pip install pynessie

mkdir -p ~/.config

cat <<EOF > ~/.config/nessie
auth:
    type: aws
    timeout: 10
endpoint: http://localhost:19120/api/v1
verify: yes
EOF