A lightweight, but highly extensible static site generator written in pure python

barely barely is a lightweight, but highly extensible static site generator. barely was built out of frustration with the readily available site generators, frameworks and CMS, which mostly fall into two categories: not providing crucial features; or providing such an overload of them that getting started with the system takes longer than just building the site by hand. barely reduces static website development to its key parts, by automatically rendering jinja2 templates and Markdown content into HTML. A simple plugin […]

Read more

Chatbot construido com o framework Rasa in python

Chatbot construido com o framework Rasa. Necessário instalar Docker e Docker Compose. Para inicializar a aplicação, basta executar o comando abaixo na raiz do projeto: docker-compose up Cainais Portas utilizadas localhost:3306: Racom Banco de dados (MySQL) localhost:4040: Túnel de conexão (Ngrok) localhost:4444: Racom API (Node.js) localhost:4445: Webchat localhost:5002: Rasa API localhost:5005: Rasa Server localhost:5055: Rasa Action Server Observações Ao executar a aplicação, o server do chatbot irá ser executado na porta :5005 e irá criar um túnel nessa porta para […]

Read more

The Hypothesis client is a browser-based annotator that is a client for h’s API

h is the web app that serves most of the https://hypothes.is/ website, including the web annotations API at https://hypothes.is/api/. The Hypothesis client is a browser-based annotator that is a client for h’s API. Development See the Contributor’s guide for instructions on setting up a development environment and contributing to h. Community Join us on Slack (request an invite or log in once you’ve created an account) or in #hypothes.is on freenode for discussion. If you’d like to contribute to the […]

Read more

SIMD-accelerated bitwise hamming distance Python module for hexidecimal strings

SIMD-accelerated bitwise hamming distance Python module for hexidecimal strings What does it do? This module performs a fast bitwise hamming distance of two hexadecimal strings. This looks like: DEADBEEF = 11011110101011011011111011101111 00000000 = 00000000000000000000000000000000 XOR = 11011110101011011011111011101111 Hamming = number of ones in DEADBEEF ^ 00000000 = 24 This essentially amounts to >>> import gmpy >>> gmpy.popcount(0xdeadbeef ^ 0x00000000) 24 except with Python strings, so >>> import gmpy >>> gmpy.popcount(int(“deadbeef”, 16) ^ int(“00000000”, 16)) 24 A few assumptions are made […]

Read more

A set of tools to analyse, modify or extend the Swiss synthetic population

A set of tools to analyse, modify or extend the Swiss synthetic population. Executive summary SynPopToolbox is a Python framework developed by the transport & mobility modelling team at the Swiss Federal Railways (SBB). It offers tools to pre-process, visualise and modify a synthetic population of Switzerland. The synthetic population for 2017 has been established through a joint effort from SBB and the Federal Office for Spatial Development ARE for transport and land-use modelling purposes. The project and applied methods […]

Read more

A tool to calculate a resulting color of the alpha blending process

This is a tool to calculate a resulting color of the alpha blending process. A gamma correction is enabled and the default transfer function is the one defined in sRGB. Usage Just enumerate colors from the bottom to the top. Let’s blend 75% black on pure white blec white black:0.75 blec fff 000000bf blec ffffffff [0,0,0,191] blec ffffff:1 [0,0,0]:0.75 Every call above does the same thing Installation pip3 install blec GitHub GitHub – igrmk/blec: Alpha blending calculator Alpha blending calculator. […]

Read more

Fused multiply-add (with a single rounding) for Python

Fused multiply-add for Python. Fused multiply-add computes (x*y) + z with a single rounding. Useful for dotproducts, matrix multiplications, polynomial evaluations (e.g., with Horner’s rule),Newton’s method for evaluating functions, convolutions, artificial neural networks etc. Use as import pyfma out = pyfma.fma(3.0, 2.0, 1.0) # 3.0*2.0 + 1.0 = 7.0 Also works with NumPy inputs: import numpy import pyfma x = numpy.random.rand(3, 4, 5) y = numpy.random.rand(3, 4, 5) z = numpy.random.rand(3, 4, 5) out = pyfma.fma(x, y, z) Built with […]

Read more

Parsing and validating request arguments: headers, arguments, cookies, files, json, etc

Sanic integration with Webargs. Parsing and validating request arguments: headers, arguments, cookies, files, json, etc. IMPORTANT: From version 2.0.0 webargs-sanic requires you to have webargs >=7.0.1. Please be aware of changes happened in version of webargs > 6.0.0. If you need support of webargs 5.x with no location definition, please use previous version(1.5.0) of this module from pypi. webargs is a Python library for parsing and validating HTTP request arguments, with built-in support for popular web frameworks. webargs-sanic allows you […]

Read more

A documentation injection tool for your classes when using Fast API

LuSyringe is a documentation injection tool for your classes when using Fast API Benefits The main benefit is being able to separate your business code (classes) from the logic of the documentation and pydantic validation. For example, a class that serves as a response for an endpoint may look like this without LuSyringe: class HealthResponse(BaseModel): ping: str = Field(…, example=”pong”) version: str = Field(…, example=”1.0.0″) And that’s not bad at first look, but the response class is tightly coupled of […]

Read more
1 38 39 40 41 42 48