Python 3 module to print out long strings of text with intervals of time inbetween

Python-Fastprint Python 3 module to print out long strings of text with intervals of time inbetween Install:pip install fastprint Sync Usage: from fastprint import pr pr(“longntext”) # each line takes 1 second pr(“othernlongtext”, 0.2) # each line takes 0.2 seconds Async usage: from async_fastprint import async_pr async def foo: return async_pr(“Thisnisnasynchrounous!”) Check out example.py for more GitHub https://github.com/ThatOneCalculator/Python-Fastprint    

Read more

A Scheil-Gulliver simulation tool using pycalphad

scheil A Scheil-Gulliver simulation tool using pycalphad. import matplotlib.pyplot as plt from pycalphad import Database, variables as v from scheil import simulate_scheil_solidification # setup the simulation parameters dbf = Database(‘alzn_mey.tdb’) comps = [‘AL’, ‘ZN’, ‘VA’] phases = sorted(dbf.phases.keys()) liquid_phase_name = ‘LIQUID’ initial_composition = {v.X(‘ZN’): 0.3} start_temperature = 850 # perform the simulation sol_res = simulate_scheil_solidification(dbf, comps, phases, initial_composition, start_temperature, step_temperature=1.0) # plot the result for phase_name, amounts in sol_res.cum_phase_amounts.items(): plt.plot(sol_res.temperatures, amounts, label=phase_name) plt.plot(sol_res.temperatures, sol_res.fraction_liquid, label=’LIQUID’) plt.ylabel(‘Phase Fraction’) plt.xlabel(‘Temperature (K)’) plt.title(‘Al-30Zn […]

Read more

A friendly Python wrapper around the Deezer API

Deezer Python Client A friendly Python wrapper around the Deezer API. Installation The package is published onPyPI and can be installed by running: pip install deezer-python Basic Use Easily query the Deezer API from you Python code. The data returned by the DeezerAPI is mapped to python resources: >>> client = deezer.Client() >>> client.get_album(680407).title ‘Monkey Business’    

Read more

A community made discord bot coded in Python and running on AWS

Pogbot This is an open source community ran project. Join the discord for more information on how to participate. Coded in python, running on AWS. Adding Pogbot To add Pogbot to your discord server, send a message to Pogbot#0689 with the keyword add. Getting Started Once Pogbot is added, run the command !setup to get antiquated with Pogbot. GitHub https://github.com/projectopengroup/Pogbot    

Read more

Make visual music sheets for thatskygame

sky-python-music-sheet-maker This program lets you make visual music sheets for Sky: Children of the Light. It will ask you a few questions, and does not require previous knowledge of the command line to run. Usage Installation The program requires Python >= 3.6 and the following packages: PIL (preferably pillow) import_resources (for Python < 3.8) pyYaml mido (optional: for generating midi output) requests (optional: for generating a link to skymusic.herokuapp.com) The program can be installed by simply unzipping the code on [...]

Read more

A bike computer based on Raspberry Pi Zero with GPS and ANT+

Pi Zero Bikecomputer An open source bike computer based on Raspberry Pi Zero (W, WH) with GPS and ANT+. Including offline map and navigation. Abstract Pi Zero Bikecomputer is a GPS and ANT+ bike computer based on Raspberry Pi Zero(W, WH). This is the first DIY project in the world integrated with necesarry hardwares and softwares for modern bike computer. It measures and records position(GPS), ANT+ sensor(speed/cadence/power) and I2C sensor(pressure/temperature/accelerometer, etc). It also displays these values, even maps and courses […]

Read more

A tool for making a every day video if you take a picture of you everyday

Face-Every-Day-Maker-Studio This project is a tool for making a everyday video, which is timelapse video or slides video, of images but for face of a person, this if you take a picture of yourself everyday and you want to appreciate how you are getting old. In this readme file there’re the instructions for running the dev-working environment and the Motivation I made this repo to explain some of my students the basic concepts of git in practice, removing, and modifying […]

Read more

Unofficial PyTorch implementation of Attention Free Transformer (AFT) layers

aft-pytorch Unofficial PyTorch implementation of Attention Free Transformer’s layers by Zhai, et al. [abs, pdf] from Apple Inc. Installation You can install aft-pytorch via pip: pip install aft-pytorch Usage You can import the AFT-Full or AFT-Simple layer (as described in the paper) from the package like so: AFTFull from aft_pytorch import AFTFull layer = AFTFull( max_seqlen=20, dim=512, hidden_dim=64 ) # a batch of sequences with 10 timesteps of length 512 each x = torch.rand(32, 10, 512) y = layer(x) # […]

Read more

Simple, yet effective moderator bot for telegram

Samurai Telegram Bot Simple, yet effective moderator bot for telegram. With reports, logs, profanity filter and more :3 Personal bot, made for easy chat auto-moderation.Adds reporting functionality, profanity filtering (both english & russian languages are supported), logging system via private channel and much more!More of that, the bot code & functions can be easily extended and/or limited as you prefer. The code has NOT been polished and is provided “as is”. There are a lot of code that are redundant […]

Read more
1 618 619 620 621 622 929