30 Days of Python - Day 24 - Sending SMS Texts with Python and Twilio - Python TUTORIAL

  Рет қаралды 13,942

CodingEntrepreneurs

CodingEntrepreneurs

Күн бұрын

Пікірлер: 21
@Pyplane
@Pyplane 4 жыл бұрын
Awesome as always 👍
@aliounefaye532
@aliounefaye532 3 жыл бұрын
I have to salut you for your dedication to learning and teaching man! Its crazy to know people like you exist!
@CodingEntrepreneurs
@CodingEntrepreneurs 3 жыл бұрын
I’m certainly not the only one. Some people just enjoy to share knowledge; I hope you share as well
@anesu6184
@anesu6184 4 жыл бұрын
Thanks always for your tutorials.
@stanleyowunna4716
@stanleyowunna4716 4 жыл бұрын
Your tutorials have been me understand so many things I didn’t before . Thanks for all of them
@exactbrain6248
@exactbrain6248 4 жыл бұрын
i know its going to be perfect tutorial i just clicked, thanks i love you
@abdulsalamjamaeazidane5481
@abdulsalamjamaeazidane5481 4 жыл бұрын
Keep going 😍
@neo-the-one
@neo-the-one 4 жыл бұрын
Great video 👌. I hope you do more twilio tutorials in the future
@likeashutoshkumar197
@likeashutoshkumar197 4 жыл бұрын
Cool❤️
@serious6037
@serious6037 Жыл бұрын
How do you always make something very easy very complicated and sound like its a endless labyrinth?
@moeghamdi6553
@moeghamdi6553 3 жыл бұрын
Great video man. How do I have that same message be sent to multiple phone numbers?
@gauravsonthalia921
@gauravsonthalia921 4 жыл бұрын
How to generate a pdf report from django admin model object form. Please help. Really stuck with this one..
@gaylonalfano
@gaylonalfano 4 жыл бұрын
Is creds.json essentially replacing something like an .env file? I've seen examples of storing these types of credentials in an .env file and then having a settings.py (or config.py) file that retrieves the environment variables using something like os.getenv("SECRET_VAR"). Just curious about the difference. Thanks!
@CodingEntrepreneurs
@CodingEntrepreneurs 4 жыл бұрын
Storing creds in environment variables is the best way for sure. `.env` files aren’t great for this.
@gaylonalfano
@gaylonalfano 4 жыл бұрын
@@CodingEntrepreneurs Thanks for the reply! Still lots to learn. I've slowly gotten comfortable with using .env, then a separate settings.py file and then finally importing these environment variables into my "public" code (e.g., from settings import ENV_VAR). I think I saw this flow inside the FastAPI docs so I just started copying it haha. Here is my attempt at making a function to reset credentials. Totally hacky but was just trying to see if I could make it work. The end result is it basically builds/writes my .env file. Way more complicated than necessary but I'm just exploring how to work between/around files. Great series and thanks again! def reset_credentials(reset_creds: bool = True): """ This will save our creds from above (blank or not) to a local .env file named so we can re-use these credentials. It's recommended to create new API keys for each new project so we can turn them off at anytime without causing disruption to other projects. """ if reset_creds: twilio_sid: str = getpass("What's the Twilio Account SID? ") twilio_secret: str = getpass("What's the Twilio Secret? ") send_to_number: str = getpass("What's the number to send to? ") send_from_number: str = getpass("What's the number to send from? ") creds: t.Dict[str, str] = { "TWILIO_SID": twilio_sid, "TWILIO_SECRET": twilio_secret, "SEND_TO_NUMBER": f"+{send_to_number}", "SEND_FROM_NUMBER": f"+{send_from_number}", } # print(f"creds dict: {creds.items()}") # Create a concatenated string for each credential k:v pair # creds_lines: t.List[str] = [] # for k, v in data.items(): # # Have to add newline for f.writelines() # cred_line: str = f"{k}={v} " # creds_lines.append(cred_line) creds_lines: t.List[str] = [f"{k}={v} " for k, v in creds.items()] # Now write each credential line to the .env file with open(".env", "w") as f: # Just write one line at a time: f.writelines(creds_lines) # Let's try it: reset_credentials(reset_creds=True)
@gaylonalfano
@gaylonalfano 4 жыл бұрын
What's the difference between a webhook and a serverless function? They sound almost interchangeable.
@chikaotisi8583
@chikaotisi8583 3 жыл бұрын
How do you send to multiple numbers
@suliman1448
@suliman1448 4 жыл бұрын
Can I download you videos?
@vijayrao10
@vijayrao10 4 жыл бұрын
Please provide react js Full course also
30 Days of Python - Day 26 - Python to Databases via SQL - Python TUTORIAL
1:02:43
Каха и лужа  #непосредственнокаха
00:15
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 22 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 6 МЛН
Wait for it 😂
00:19
ILYA BORZOV
Рет қаралды 10 МЛН
Create email and text message SMS alerts with Python!
9:49
ClarityCoders
Рет қаралды 154 М.
He wrote this out BY HAND? // Code Review
24:01
The Cherno
Рет қаралды 96 М.
Python Async Web Scraping - Day 27 - 30 Days of Python
38:54
CodingEntrepreneurs
Рет қаралды 21 М.
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 278 М.
How to Send SMS (Text Messages) for FREE with Python
5:08
Collins Awusa
Рет қаралды 10 М.
Code a Discord Bot with Python - Host for Free in the Cloud
1:08:28
freeCodeCamp.org
Рет қаралды 2,4 МЛН
Someone improved my code by 40,832,277,770%
28:47
Stand-up Maths
Рет қаралды 2,6 МЛН
Python Regular Expressions - Day 29 - 30 Days of Python
1:08:06
CodingEntrepreneurs
Рет қаралды 8 М.
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 125 М.
Каха и лужа  #непосредственнокаха
00:15