View profile

Python packages worth checking out

Python packages worth checking out
By Apoorv Tyagi • Issue #6 • View online
Python is an extremely popular programming language that is being used officially by majority of organizations.

Part of the reason is its exhaustive collection of packages to make your life easy.

So I have decided to bring to you the 3 python packages which you probably haven’t heard of before, but can come pretty handy in your next project.

Furl
Furl makes parsing and manipulating URLs easy for you. Furl objects let you access and modify the various components of a URL.

Here is an example of “paths” and “query” using furl 👇
Furl
Furl
Although Python’s standard urllib and urlparse modules provide a number of URL related functions, but using these functions to perform common URL operations proves tedious.

That’s where Furl comes in.

Furl can be pretty useful while Implementing functionality for your Wrapper APIs.

Here is one more example of using furl’s inline modification methods 👇
Furl (Inline Methods)
Furl (Inline Methods)
Html2Text
This allows you to convert HTML code to clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown.

Here’s a simple example 👇
Html2Text
Html2Text
One more example to demonstrate the case where you want to ignore the conversion of LINKS 👇
Html2Text
Html2Text
Faker
Faker generates fake data for you.

Whether you need to bootstrap your database, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.

Use faker.Faker() to create and initialize a faker generator, which can generate data by accessing properties named after the type of data you want 👇
faker
faker
Tip : You can checkout radar if you want to generate random date and time 👇
radar
radar
👋 That’s it for this week. I hope you enjoyed it and have learnt something new🤞
If you have more suggestions, I’d love to hear about them as well.
🍻Consider subscribing in case you haven’t already and share this newsletter with those you feel can get benefit out of it.
 See you on the Internet next Wednesday!
-Apoorv;

Find Me Elsewhere
Did you enjoy this issue?
Apoorv Tyagi

𝗔 𝗻𝗲𝘄𝘀𝗹𝗲𝘁𝘁𝗲𝗿 𝗮𝘁 𝘁𝗵𝗲 𝗶𝗻𝘁𝗲𝗿𝘀𝗲𝗰𝘁𝗶𝗼𝗻 𝗼𝗳 𝐏𝐬𝐲𝐜𝐡𝐨𝐥𝐨𝐠𝐲, 𝐓𝐞𝐜𝐡 𝗮𝗻𝗱 𝐒𝐨𝐟𝐭𝐰𝐚𝐫𝐞 𝐄𝐧𝐠𝐢𝐧𝐞𝐞𝐫𝐢𝐧𝐠.

𝗥𝗶𝘀𝗲 𝘁𝗼 𝘁𝗵𝗲 𝘁𝗼𝗽 𝟭% 𝘄𝗶𝘁𝗵 𝗶𝗻𝗰𝗿𝗲𝗺𝗲𝗻𝘁𝗮𝗹 𝗴𝗮𝗶𝗻𝘀 𝗶𝗻 𝘆𝗼𝘂𝗿 𝗸𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 𝗲𝘃𝗲𝗿𝘆 𝗺𝗼𝗻𝘁𝗵.

𝗝𝗼𝗶𝗻 𝘂𝘀 𝗮𝗻𝗱 𝟭𝟬𝟬+ 𝗺𝗲𝗺𝗯𝗲𝗿𝘀 𝐭𝐨 𝐢𝐦𝐩𝐫𝐨𝐯𝐞 𝐚𝐬 𝐚 𝐝𝐞𝐯𝐞𝐥𝐨𝐩𝐞𝐫 𝗮𝗻𝗱 𝐭𝐨 𝐠𝐞𝐭 𝐭𝐡𝐞 𝐛𝐞𝐬𝐭 𝐭𝐢𝐩𝐬 𝐚𝐧𝐝 𝐚𝐫𝐭𝐢𝐜𝐥𝐞𝐬 𝗱𝗶𝗿𝗲𝗰𝘁𝗹𝘆 𝘁𝗼 𝘆𝗼𝘂𝗿 𝗶𝗻𝗯𝗼𝘅 📩

P.S. It is free (and fun!) :)

If you don't want these updates anymore, please unsubscribe here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Powered by Revue