Easily load variables from AWS Parameter store into environment variables

Easily load variables from AWS Parameter store into environment variables. Because it handles AWS pagination so the amount of requests performed to retrieve the parameters are the bare minimum.Also it handles invalid parameters, so you don’t have to deal with undefined variables exceptions, as an option. from awstanding.parameter_store import load_parameters load_parameters({‘/some/path/to/something/stored’: ‘IMPORTANT_SETTING’}) import os print(os.environ.get(‘IMPORTANT_SETTING’)) ‘super-important-value’ import os from awstanding.parameter_store import load_parameters

Read more

Pdisk uploader telegram bot

pdisk uploader telegram bot Configs TG_BOT_TOKEN – Get bot token from @BotFather API_ID – From my.telegram.org API_HASH – From my.telegram.org DATABASE_URI – Mongo Database URL from https://cloud.mongodb.com/ DATABASE_NAME – Your database name from mongoDB. Default will be ‘my’ ADMIN – Your User ID How To Create Data Base Url https://youtu.be/HhHzCfrqsoE Bot Commands set command /connect connect your account /broadcast Send Message To all User Deploy to Heroku Support 🇮🇳    

Read more

Pdisk Upload Bot made using Python with Pyrogram Framework

Introduction This Is PDisk Upload Bot Used To Upload Direct Link To Pdisk With Thumb Support Deploy Heroku Deploy Local Deploy pip install git git clone https://github.com/HeimanPictures/Pdisk-Upload-Bot.git cd Pdisk-Upload-Bot pip install -r requirements.txt cp config.py — EDIT config.py values appropriately — python bot.py Config Credits Note To Get Full Source Code With Login and logout n other features    

Read more

Automated image processing for Django

ImageKit is a Django app for processing images. Need a thumbnail? A black-and-white version of a user-uploaded image? ImageKit will make them for you. If you need to programatically generate one image from another, you need ImageKit. ImageKit comes with a bunch of image processors for common tasks like resizing and cropping, but you can also create your own. For an idea of what’s possible, check out the Instakit project. For the complete documentation on the latest stable version of […]

Read more

Python’s sum(): The Pythonic Way to Sum Values

Python’s built-in function sum() is an efficient and Pythonic way to sum a list of numeric values. Adding several numbers together is a common intermediate step in many computations, so sum() is a pretty handy tool for a Python programmer. As an additional and interesting use case, you can concatenate lists and tuples using sum(), which can be convenient when you need to flatten a list of lists. In this tutorial, you’ll learn how to: Sum numeric values by hand […]

Read more
1 2