Skip to content

Instantly share code, notes, and snippets.

View julian-r's full-sized avatar

Julian David Rath julian-r

View GitHub Profile
@julian-r
julian-r / poetry.lock
Last active October 11, 2022 15:10
How to stream AES Encrypted zip files with fastAPi
[[package]]
name = "anyio"
version = "3.6.1"
description = "High level compatibility layer for multiple asynchronous event loop implementations"
category = "main"
optional = false
python-versions = ">=3.6.2"
[package.dependencies]
idna = ">=2.8"

Problem is h5py is needed in a version 2.x.x which does not compile.

The errormessage is quite long, looks somehow like this:

...
      /tmp/pip-req-build-3eriu_nn/h5py/h5i.c: In function ‘__pyx_pymod_exec_h5i’:
      /tmp/pip-req-build-3eriu_nn/h5py/h5i.c:3183:43: error: ‘H5I_REFERENCE’ undeclared (first use in this function); did you mean ‘H5T_REFERENCE’?
       3183 |   __pyx_t_2 = __Pyx_PyInt_From_H5I_type_t(H5I_REFERENCE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error)
            |                                           ^~~~~~~~~~~~~
            |                                           H5T_REFERENCE
""" Small Wrapper for the mailjet api.
https://dev.mailjet.com/email/guides/send-api-v31/
"""
from typing import List, Optional
from pydantic import BaseModel, EmailStr, Field
import httpx
SEND_API_ENDPOINT = "https://api.mailjet.com/v3.1/send"
@julian-r
julian-r / merge_junit_results.py
Last active September 29, 2023 16:17 — forked from cgoldberg/merge_junit_results.py
Merge multiple JUnit XML results files into a single results file.
#!/usr/bin/env python
#
# Corey Goldberg, Dec 2012
#
import os
import sys
import xml.etree.ElementTree as ET
@julian-r
julian-r / M4T3M4t
Last active December 17, 2015 12:19
m4t3m4t
=======
Flachband von den Knöpfen
-----------------
1  LED 1
2  LED 2
3  LED 3
4  LED 4
5  LED 5