Skip to content

mhered/pybites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My PyBites Code Archive

This repo contains all the code submitted by me on the PyBites platform https://codechalleng.es/ as part of my #100DaysOfCode challenge between October and December 2022. In ./archive/ each folder contains the last 5 commits submitted for the Bite along with any notes. The filenames show if the submission passed or failed on the platform.

main.py contains a script used to make this README.md a bit friendlier:

  • get_bites() : scrape a static local copy of my public profile page to get the bites, dates, number of submissions, points etc. Makes a Soup object, parses the relevant HTML sections, and returns a list of Bite namedtuples
  • print_markdown_table_of() : receive a list of Bite namedtuples and print in stdout rows formatted as Markdown ready to copy & paste, see Table of Contents below
  • plot_graph_of() : receive a list of Bite namedtuples and plot a daily graph of bites completed and points gained (accumulated) since the start. See Progress Graph below

To do

  • scrape my public profile page to get the bites, dates, number of submissions, points etc.
  • make a table with links to the bites on the platform and the code on my repo
  • make graphs with the progress
  • freeze dependencies. Used pipreqs (see repo). Note: need to ignore ./archive/ otherwise it attempts to add all imports from the bites (not installed)
$ python3 -m pipreqs.pipreqs . --ignore archive --force

Dependencies

Used venv and pipreqs

See requirements.txt

Progress graph

progress_graph

Table of Contents: List of Bites

Bite Folder Date Points Submissions
Bite 87. Convert Decimal to Roman Numerals my code 17/12/2022 3 2
Bite 266. Composition, Inheritance, Abstract Base Class, what? my code 16/12/2022 4 20
Bite 206. Calculate and evenly split the bill my code 16/12/2022 3 14
Bite 132. Find the word with the most vowels my code 15/12/2022 3 4
Bite 296. Jagged list my code 15/12/2022 3 2
Bite 304. Most identical letters in a word my code 15/12/2022 3 12
Bite 325. Floating point arithmetic my code 13/12/2022 3 9
Bite 94. Parse PyCon talk data from YouTube my code 12/12/2022 4 5
Bite 50. Make a little PyBites search engine (feedparser) my code 12/12/2022 4 8
Bite 200. 🥳 Minecraft Enchantable Items my code 11/12/2022 9 14
Bite 226. Get top titles from news.python.sc my code 11/12/2022 3 4
Bite 198. Calculate my Mac's longest uptime my code 11/12/2022 4 3
Bite 291. Find the fastest speech my code 10/12/2022 3 4
Bite 197. What date is Mother's Day celebrated? my code 10/12/2022 3 2
Bite 187. Actor/actress age at movie release my code 09/12/2022 3 7
Bite 186. Calculate number of books to have read at date ... my code 09/12/2022 3 4
Bite 173. Set up future notifications my code 09/12/2022 3 2
Bite 229. Scrape best programming books my code 08/12/2022 4 22
Bite 275. Get the most common email domains my code 08/12/2022 3 9
Bite 348. Citation indexes my code 07/12/2022 3 13
Bite 351. Get spelling suggestions my code 06/12/2022 3 3
Bite 243. Test code that parses JSON and IP ranges my code 06/12/2022 3 20
Bite 256. Scrape PyCon events my code 05/12/2022 3 3
Bite 111. Use the ipinfo API to lookup IP country my code 05/12/2022 3 2
Bite 160. 15-way Rock Paper Scissors my code 04/12/2022 4 2
Bite 195. Analyze NBA Data with sqlite3 my code 04/12/2022 3 2
Bite 78. Find programmers with common languages my code 03/12/2022 3 3
Bite 124. Marvel data analysis my code 03/12/2022 4 13
Bite 151. Contemporary Composers my code 03/12/2022 3 5
Bite 84. Flatten lists recursively (Droste Bite) my code 02/12/2022 3 2
Bite 23. Find words that are > 95% similar my code 02/12/2022 4 3
Bite 141. Primitive date format inferrer my code 01/12/2022 3 4
Bite 147. 100 WEEKDays of Code Date Range my code 01/12/2022 3 4
Bite 113. Filter words with non-ascii characters my code 30/11/2022 3 19
Bite 342. Food logging CRUD my code 29/11/2022 3 18
Bite 341. Pydantic part II my code 29/11/2022 3 12
Bite 20. Write a context manager my code 28/11/2022 4 4
Bite 217. Capture stdout my code 28/11/2022 3 3
Bite 202. Analyze some Bite stats data - part II my code 27/11/2022 3 4
Bite 306. Translate coding sequences to proteins my code 27/11/2022 3 8
Bite 323. Iterables intersection my code 27/11/2022 2 3
Bite 359. Implementation of a More Sophisticated Typer Tests my code 26/11/2022 4 13
Bite 205. Female speakers @ Pycon US my code 26/11/2022 3 2
Bite 193. Most upvoted StackOverflow Python questions my code 26/11/2022 3 2
Bite 362. Add a Password Prompt to Your Command Line Interface (CLI) my code 25/11/2022 3 5
Bite 361. Rich Excursion - Create Beautiful Tables my code 25/11/2022 3 3
Bite 144. Calculate the Number of Months Passed my code 25/11/2022 3 4
Bite 330. Simple Math Equation Solver my code 24/11/2022 4 12
Bite 318. Decode base64 encoded data my code 24/11/2022 2 2
Bite 316. To rent or to stream movies? my code 23/11/2022 3 2
Bite 329. Convert dict keys to snake case my code 23/11/2022 4 6
Bite 347. Which words can you type with one hand? my code 22/11/2022 2 3
Bite 98. Code your way out of a grid my code 22/11/2022 4 2
Bite 284. Pascal triangle my code 22/11/2022 3 3
Bite 332. Searching for an apartment my code 21/11/2022 3 3
Bite 175. Find missing dates my code 21/11/2022 3 2
Bite 92. Humanize a datetime my code 21/11/2022 3 2
Bite 319. Identity and equality my code 20/11/2022 2 9
Bite 322. Reading progress my code 20/11/2022 2 4
Bite 293. N digit numbers my code 19/11/2022 2 3
Bite 174. String manipulation and metrics my code 19/11/2022 1 17
Bite 178. Parse PyBites blog git commit log my code 19/11/2022 3 2
Bite 148. Print Car Data Grouped by Manufacturer my code 19/11/2022 3 3
Bite 289. Round to next number my code 19/11/2022 2 2
Bite 63. Use an infinite iterator to simulate a traffic light my code 18/11/2022 4 2
Bite 99. Write an infinite sequence generator my code 18/11/2022 3 2
Bite 288. Smallest number my code 18/11/2022 2 3
Bite 40. Write a binary search algorithm my code 17/11/2022 4 10
Bite 274. Number conversion problem my code 17/11/2022 3 6
Bite 314. Print names to columns my code 16/11/2022 2 3
Bite 363. Movie Theater (Refactoring) my code 16/11/2022 3 5
Bite 179. Strip comments from Python code my code 16/11/2022 4 2
Bite 166. Complete a tox ini file parser class my code 15/11/2022 3 7
Bite 157. Filter out accented characters my code 15/11/2022 3 4
Bite 139. Calculate a coding streak in days my code 14/11/2022 4 5
Bite 278. Major and minor numbers my code 14/11/2022 2 2
Bite 171. Make a terminal spinner animation my code 13/11/2022 4 5
Bite 131. Screen scraper my code 13/11/2022 4 9
Bite 75. Parse Unix cal to a weekday mapping my code 13/11/2022 4 4
Bite 155. Split a string by spaces or quoted text my code 13/11/2022 3 2
Bite 53. Convert text into multiple columns my code 12/11/2022 4 3
Bite 184. Analyze some Bite stats data my code 12/11/2022 3 2
Bite 156. Make an index of story characters my code 12/11/2022 3 5
Bite 257. Extract users dict from a multiline string my code 12/11/2022 2 5
Bite 324. Pretty string my code 11/11/2022 2 2
Bite 150. Turn messy CSV into JSON my code 11/11/2022 3 3
Bite 129. Analyze Stock Data my code 11/11/2022 3 4
Bite 254. Global vs local variables my code 11/11/2022 2 2
Bite 252. Let's play with Pandas Series my code 10/11/2022 2 8
Bite 251. Introducing Pandas Series my code 09/11/2022 2 2
Bite 358. Implementation of a Simple Typer Test my code 08/11/2022 3 3
Bite 356. Using Typer Callbacks to Create Command Line Interface (CLI) Parameters my code 08/11/2022 3 3
Bite 72. Retrieve the right Ninja Belt based on score my code 08/11/2022 3 3
Bite 65. Get all valid dictionary words for a draw of letters my code 08/11/2022 3 2
Bite 154. Write your own Data Class my code 08/11/2022 3 3
Bite 354. When to Use Command Line Option (CLI) Options and When CLI Arguments? my code 07/11/2022 3 2
Bite 298. Fasta to 2-Line Fasta my code 06/11/2022 3 8
Bite 360. Add a progress bar to Your Command Line Interface (CLI) my code 06/11/2022 2 2
Bite 357. Implement your First Subcommands and Command Groups my code 06/11/2022 2 2
Bite 355. Create Your First Typer Command Line Interface (CLI) Application my code 06/11/2022 2 2
Bite 73. Organize a meeting between timezones (pytz) my code 05/11/2022 3 6
Bite 353. Transform a Script Into a Command Line Interface (CLI) my code 05/11/2022 2 3
Bite 231. Where are the emojis? my code 05/11/2022 2 2
Bite 90. What South Park characters talk most? my code 05/11/2022 3 2
Bite 225. Swap case PyBites characters my code 04/11/2022 2 2
Bite 272. Find common words my code 03/11/2022 3 4
Bite 191. Starwars character with highest BMI my code 02/11/2022 3 3
Bite 190. Parse income distribution from Latin America XML my code 02/11/2022 3 2
Bite 122. Check if two words are anagrams my code 02/11/2022 3 3
Bite 79. Parse a csv file and create a bar chart my code 01/11/2022 3 3
Bite 138. OOP fun at the Zoo my code 01/11/2022 3 2
Bite 212. Suppressing exceptions my code 01/11/2022 3 3
Bite 214. A countdown generator my code 01/11/2022 2 3
Bite 210. Add Type Annotations my code 31/10/2022 2 3
Bite 51. When does Python 2 die on Planet Miller? my code 30/10/2022 3 2
Bite 209. Write a Sphinx docstring my code 30/10/2022 2 5
Newbie Bite 13. Dict data retrieval methods my code 29/10/2022 0 3
Bite 192. Some logging practice my code 28/10/2022 2 12
Bite 267. Measure the size of an island my code 27/10/2022 3 2
Bite 189. Filter a list of names my code 27/10/2022 2 4
Newbie Bite 12. Dicts my code 26/10/2022 0 2
Bite 86. Create a RGB-to-Hex converter my code 25/10/2022 3 5
Bite 181. Keep a list sorted upon insert my code 25/10/2022 2 3
Bite 180. Group names by country my code 24/10/2022 2 2
Bite 176. Create a variable length chessboard my code 23/10/2022 2 2
Bite 48. Make a bar chart of new Safari books my code 23/10/2022 3 3
Bite 340. Update and delete food objects my code 22/10/2022 3 6
Bite 339. Retrieve food objects my code 22/10/2022 3 5
Bite 239. Test FizzBuzz my code 22/10/2022 3 2
Bite 172. Having fun with Python Partials my code 22/10/2022 2 2
Bite 169. Simple length converter my code 21/10/2022 2 5
Bite 165. Parse an /etc/passwd file output my code 19/10/2022 2 5
Bite 208. Find the number pairs summing up N my code 18/10/2022 2 4
Bite 114. Implement a Color class with staticmethod my code 18/10/2022 3 7
Bite 161. Count the number of files and directories my code 18/10/2022 2 2
Bite 153. Round a sequence of numbers my code 17/10/2022 2 2
Bite 149. Sorting words with constraint my code 16/10/2022 2 3
Bite 143. Look up a value in 3 dictionaries my code 15/10/2022 2 5
Bite 136. Bloodtypes my code 14/10/2022 2 9
Bite 39. Calculate the total duration of a course my code 13/10/2022 3 3
Bite 317. Pickling objects my code 12/10/2022 2 2
Bite 125. Get the most recommended books my code 12/10/2022 3 3
Bite 133. Convert an Amazon URL into an affiliation link my code 11/10/2022 2 2
Bite 265. Optimal fund raising my code 11/10/2022 3 2
Bite 120. Write a numbers validation decorator my code 10/10/2022 3 3
Bite 259. Reverse complement my code 10/10/2022 3 7
Bite 117. Round a number even (a.k.a. banker's rounding) my code 10/10/2022 2 7
Bite 95. Subclass the dict built-in my code 09/10/2022 3 4
Bite 115. Count leading spaces my code 09/10/2022 2 2
Bite 263. Count the number of islands in a grid my code 08/10/2022 3 3
Bite 338. Create food objects my code 08/10/2022 3 10
Bite 100. Display the last part of a file (Unix tail) my code 08/10/2022 2 4
Bite 97. BeautifulSoup II - scrape US holidays my code 07/10/2022 3 4
Bite 246. Test print / standard output my code 07/10/2022 2 5
Bite 71. Keep state in a class + make its instance callable my code 07/10/2022 3 2
Bite 283. Like there's no tomorrow? my code 07/10/2022 2 2
Bite 96. Build Unix' wc program in Python my code 07/10/2022 2 3
Bite 128. Work with datetime's strptime and strftime my code 06/10/2022 2 5
Bite 69. Regex Fun - part II my code 06/10/2022 4 5
Bite 36. Having fun with *args and **kwargs my code 06/10/2022 3 2
Bite 215. Validate a license key my code 06/10/2022 2 4
Bite 182. Parse a bunch of quotes from HTML my code 06/10/2022 3 2
Bite 91. Matching multiple strings my code 05/10/2022 2 2
Bite 41. Write a login_required decorator my code 05/10/2022 3 3
Bite 30. Movie data analysis my code 05/10/2022 3 7
Bite 83. At what time does PyBites live? my code 05/10/2022 2 2
Bite 349. Writing better Spanish my code 04/10/2022 3 3
Bite 80. Check equality of two lists my code 04/10/2022 2 3
Bite 33. Transpose a data structure my code 03/10/2022 3 2
Bite 77. New places to travel to my code 03/10/2022 2 2
Bite 279. Armstrong numbers my code 02/10/2022 2 4
Bite 49. Scrape Packt's html with BeautifulSoup my code 02/10/2022 3 3
Bite 74. What day of the week were you born on? my code 02/10/2022 2 3
Bite 28. Converting date strings to datetimes my code 01/10/2022 3 3
Bite 68. Remove punctuation characters from a string my code 01/10/2022 2 2
Bite 27. Parse omdb movie json data my code 30/09/2022 3 2
Bite 67. Working with datetimes my code 30/09/2022 2 2
Bite 255. Codon Usage my code 29/09/2022 3 6
Bite 18. Find the most common word my code 29/09/2022 3 3
Bite 11. Enrich a class with dunder methods my code 28/09/2022 4 3
Bite 25. No promo twice, keep state in a class my code 27/09/2022 3 2
Bite 22. Write a decorator with argument my code 27/09/2022 3 2
Bite 17. Form teams from a group of friends my code 27/09/2022 3 3
Bite 56. Add a command line interface to our BMI calculator my code 27/09/2022 2 3
Bite 66. Calculate the running average of a sequence my code 26/09/2022 2 5
Bite 14. Generate a table of n sequences my code 26/09/2022 3 2
Bite 2. Regex Fun my code 25/09/2022 4 4
Bite 12. Write a user validation function my code 25/09/2022 3 6
Bite 10. Practice exceptions my code 25/09/2022 3 13
Bite 9. Palindromes my code 25/09/2022 3 4
Bite 7. Parsing dates from logs my code 25/09/2022 3 3
Bite 54. Nicer formatting of a poem or text my code 25/09/2022 2 2
Bite 46. You are a programmer! Code Fizz Buzz my code 23/09/2022 2 2
Bite 45. Keep a queue of last n items my code 23/09/2022 2 4
Bite 44. License key generator my code 22/09/2022 2 2
Bite 295. Join lists my code 22/09/2022 2 8
Bite 6. PyBites Die Hard my code 21/09/2022 3 5
Bite 3. Word Values my code 20/09/2022 3 2
Bite 4. Top 10 PyBites tags my code 20/09/2022 3 3
Bite 38. Using ElementTree to parse XML my code 20/09/2022 2 3
Bite 188. Get statistics from PyBites test code my code 19/09/2022 2 2
Bite 270. Most frequent digit in number my code 19/09/2022 2 4
Bite 167. Complete a User class: properties and representation dunder methods my code 18/09/2022 2 9
Bite 32. Don't let mutability fool you my code 18/09/2022 2 2
Bite 29. Martin's IQ test my code 17/09/2022 2 7
Bite 43. Force keyword arguments my code 16/09/2022 2 3
Bite 26. Dictionary comprehensions are awesome my code 16/09/2022 2 2
Bite 241. Write tests for list_to_decimal my code 15/09/2022 2 11
Bite 218. Create a sandwich decorator my code 15/09/2022 2 2
Bite 64. Fix a truncating zip function my code 15/09/2022 2 2
Newbie Bite 11. Adding and Removing items from a list my code 15/09/2022 0 2
Newbie Bite 10. Returning items by list index my code 15/09/2022 0 2
Newbie Bite 09. Lists my code 15/09/2022 0 3
Newbie Bite 08. String Manipulation my code 15/09/2022 0 3
Bite 130. Analyze some basic Car Data my code 14/09/2022 2 3
Newbie Bite 07. User Input my code 14/09/2022 0 10
Newbie Bite 06. Additional Maths my code 14/09/2022 0 2
Bite 13. Convert dict to namedtuple/json my code 14/09/2022 3 2
Bite 55. Get the latest game releases from Steam's RSS feed my code 14/09/2022 2 5
Bite 238. Write tests for Fibonacci my code 14/09/2022 2 2
Bite 19. Write a property my code 14/09/2022 2 3
Bite 262. GC content my code 13/09/2022 2 2
Bite 337. A little detour: Pydantic my code 13/09/2022 2 3
Newbie Bite 05. Basic Maths my code 12/09/2022 0 2
Bite 37. Rewrite a for loop using recursion my code 12/09/2022 2 3
Bite 21. Query a nested data structure my code 11/09/2022 2 4
Bite 336. FastAPI Hello World my code 11/09/2022 2 3
Bite 16. PyBites date generator my code 11/09/2022 2 2
Bite 15. Enumerate 2 sequences my code 11/09/2022 2 5
Newbie Bite 04. Printing Objects my code 11/09/2022 0 5
Bite 8. Rotate string characters my code 11/09/2022 2 3
Intro Bite 10. Type conversion and exception handling my code 10/09/2022 1 1
Intro Bite 09. Workout dictionary lookups my code 10/09/2022 1 1
Intro Bite 08. Loop over a dict of namedtuples calculating a total score my code 10/09/2022 1 1
Bite 5. Parse a list of names my code 10/09/2022 2 2
Bite 1. Sum n numbers my code 09/09/2022 2 2
Intro Bite 07. Filter numbers with a list comprehension my code 09/09/2022 1 1
Intro Bite 06. Strip out vowels and count the number of replacements my code 09/09/2022 1 1
Intro Bite 05. Slice and dice my code 09/09/2022 1 1
Intro Bite 04. Split and join my code 09/09/2022 1 1
Intro Bite 03. Loop through a dictionary and pluralise a word my code 09/09/2022 1 1
Intro Bite 02. Infinite loop, input, continue and break my code 09/09/2022 1 1
Intro Bite 01. F-strings and a simple if/else my code 09/09/2022 1 1
Newbie Bite 03. Basic Printing my code 09/09/2022 0 1
Newbie Bite 02. Basic Data Types my code 09/09/2022 0 1
Newbie Bite 01. Assigning Objects my code 09/09/2022 0 1

About

My solutions for PyBites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors