The Trojan

By Apoorv Tyagi

Python packages worth checking out



Subscribe to our newsletter

By subscribing, you agree with Revueโ€™s Terms of Service and Privacy Policy and understand that The Trojan will receive your email address.

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 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 ๐Ÿ‘‡
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)
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 ๐Ÿ‘‡
One more example to demonstrate the case where you want to ignore the conversion of LINKS ๐Ÿ‘‡
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 ๐Ÿ‘‡
Tip : You can checkoutย radarย if you want to generate random date and time ๐Ÿ‘‡
๐Ÿ‘‹ 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!
Find Me Elsewhere
Did you enjoy this issue?
Apoorv Tyagi

๐Ÿ“ฉ ๐—” ๐—ป๐—ฒ๐˜„๐˜€๐—น๐—ฒ๐˜๐˜๐—ฒ๐—ฟ ๐—ฎ๐˜ ๐˜๐—ต๐—ฒ ๐—ถ๐—ป๐˜๐—ฒ๐—ฟ๐˜€๐—ฒ๐—ฐ๐˜๐—ถ๐—ผ๐—ป ๐—ผ๐—ณ ๐๐ฌ๐ฒ๐œ๐ก๐จ๐ฅ๐จ๐ ๐ฒ, ๐๐จ๐ง-๐…๐ข๐œ๐ญ๐ข๐จ๐ง ๐๐จ๐จ๐ค๐ฌ ๐—ฎ๐—ป๐—ฑ ๐’๐จ๐Ÿ๐ญ๐ฐ๐š๐ซ๐ž ๐„๐ง๐ ๐ข๐ง๐ž๐ž๐ซ๐ข๐ง๐ .

๐๐จ, ๐ฐ๐ž ๐๐จ๐ง'๐ญ ๐œ๐ฅ๐š๐ข๐ฆ ๐ญ๐จ ๐ฆ๐š๐ค๐ž ๐ฒ๐จ๐ฎ ๐ฌ๐ฆ๐š๐ซ๐ญ๐ž๐ซ ๐ž๐ฏ๐ž๐ซ๐ฒ ๐ฐ๐ž๐ž๐ค. ๐Ž๐ง๐ฅ๐ฒ ๐ฌ๐ฎ๐›๐ฌ๐œ๐ซ๐ข๐›๐ž ๐ข๐Ÿ ๐ฒ๐จ๐ฎ๐ซ ๐ข๐ง๐ญ๐ž๐ซ๐ž๐ฌ๐ญ๐ฌ ๐š๐ฅ๐ข๐ ๐ง ๐ฐ๐ข๐ญ๐ก ๐š๐ง๐ฒ ๐จ๐Ÿ ๐ญ๐ก๐ž ๐ญ๐ก๐ซ๐ž๐ž ๐ญ๐ก๐ข๐ง๐ ๐ฌ ๐ฆ๐ž๐ง๐ญ๐ข๐จ๐ง๐ž๐ ๐š๐›๐จ๐ฏ๐ž!

P.S. It is free (and probably fun)

Tweet ย ย ย  Share
In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Powered by Revue