Home / Companies / Pybites / Blog / November 2019

November 2019 Summaries

3 posts from Pybites

Filter
Month: Year:
Post Summaries Back to Blog
The Bites of Py exercises from PyBites provide a flexible and engaging way to enhance Python skills through short, targeted practice sessions accessible directly from a browser using the Ace editor, which supports code linting and auto-formatting. For more interactive exploration, users can utilize a local Python interpreter or alternative REPLs like bpython or ptpython, with the option to maintain isolated environments using virtual environments and install necessary packages for specific exercises. When facing complex test scenarios, full-featured editors like PyCharm or VS Code offer robust testing and debugging capabilities, allowing for a smoother workflow with quicker test cycles. Additionally, the introduction of Test Bites adds a new dimension to this practice, requiring tools like the MutPy mutation testing tool for local test validation. The PyBites community shares diverse methods to tailor their practice setups, emphasizing that there is no one-size-fits-all approach and encouraging users to explore and share their unique workflows.
Nov 27, 2019 835 words in the original blog post.
A project undertaken in Belgium involved scraping comments from articles on the Belgian newspaper Het Laatste Nieuws to understand public engagement with the news. The process navigated challenges such as bypassing cookie consent barriers and adapting to Ajax loading of comments, requiring regex patterns to access all comments. The project utilized Python libraries like BeautifulSoup, Requests, and SpaCy for data extraction and NLP tasks, and WordCloud for visualizing word frequency. The SpaCy library helped categorize words, although the accuracy was initially limited, prompting plans to improve the model for Belgian dialects. The project aimed to create a comprehensive understanding of public discourse through data visualization and sought future enhancements like improved tagging, object-oriented restructuring, and sentiment analysis.
Nov 27, 2019 1,328 words in the original blog post.
PyBites has introduced a new feature called Test Bites, designed to enhance users' programming skills by teaching them how to write test code using pytest. This addition was highly requested by users who wanted to learn test writing rather than just analyzing test outputs. Test Bites require users to create test functions for given code modules, which are then checked for syntax, successful test execution, and code coverage. The platform utilizes MutPy, a mutation testing tool, to simulate errors and ensure robust test coverage, while also incorporating pytest-cov for more detailed feedback. Despite initial challenges with AWS Lambda’s lack of parallel processing capabilities, a workaround was found using multiprocessing.Pipe, enabling the feature to function effectively. The new feature aims to boost both testing skills and overall programming proficiency, with plans to roll out a dedicated learning path for Test Bites in the future.
Nov 18, 2019 1,512 words in the original blog post.