Define your JSON schema as Python dataclasses

Define your JSON schema as Python dataclasses Installation pip install nvelope The problem it solves This is basically sommething like JSON-schema, but it workswith static type checking, since the classes you define are just regularpython dataclasses which can (and should) be type checked with mypy library. It also lets not to just define the structure of your JSON data in asingle place in yourpython code, but also to definecustom checks and conversions from/to JSON for any type you want. Original […]

Read more

Group imports from Windows binaries

This is a tool that I use to group imports from Windows binaries.Sometimes, you have a gigantic folder full of executables, and you want to figure out what you should look at first.importsort will iterate over all of the files in a directory, and create a list containing the DLL name, the function imported, and the file that imported that function.You can use it to analyze possible behavior, such as network functionality or registry key manipulation etc. It uses radare2’s […]

Read more

Required for a machine learning pipeline data preprocessing and variable engineering script needs to be prepared

Required for a machine learning pipeline data preprocessing and variable engineering scriptneeds to be prepared. When the dataset is passed through this script, the modeling starts.expected to be ready. Dataset Story The data set is the data set of the people who were in the Titanic shipwreck.It consists of 768 observations and 12 variables.The target variable is specified as “Survived”;1: one’s survival,0: indicates the person’s inability to survive. Variables PassengerId: ID of the passenger Survived: Survival status (0: not survived, […]

Read more

Video Autoencoder: self-supervised disentanglement of 3D structure and motion

This repository contains the code (in PyTorch) for the model introduced in the following paper: Video Autoencoder: self-supervised disentanglement of 3D structure and motionZihang Lai, Sifei Liu, Alexi A. Efros, Xiaolong Wang ICCV, 2021[Paper] [Project Page] [12-min oral pres. video] [3-min supplemental video] Citation @inproceedings{Lai21a, title={Video Autoencoder: self-supervised disentanglement of 3D structure and motion}, author={Lai, Zihang and Liu, Sifei and Efros, Alexei A and Wang, Xiaolong}, booktitle={ICCV}, year={2021} }    

Read more

Why you can’t switch to Python 3.10 just yet

Python 3.10 is now available–but should you switch to it immediately? And if not now, when? The short answer is, no, you probably don’t want to switch immediately; quite possibly you can’t switch immediately. To understand why, we need to consider Python packaging, the software development process, and take a look at the history of past releases. We can then make a guess about when Python 3.10 will actually be usable. The problems with a new major Python release I’m […]

Read more

FastAPI + Postgres + Docker Compose + Heroku Deploy Template

⚠️ For educational purpose only. Not ready for production use YET Features FastAPI with Postgres setup Docker container with docker-compose JWT User Authentication Modular Project Structure Heroku Deploy with Githu Actions Manage Migrations with Alembic script TODO ENV files for variables Remove unwanted code and add comments Documentation Make it more useable GitHub https://github.com/steinskeeper/fastapi-postgres-docker    

Read more
1 523 524 525 526 527 1,021