Monday, June 1, 2020

PSF GSoC students blogs: Week 1 check-in

Hi, 

I'm Abijith Bahuleyan, an undergrad from India. This is my first experience with GSoC and I'm really excited. The journey started on beginning of Feb. I learned a lot in this pursuit. Git, Github, React, Javascript are some of them. 

What did I do this week?

I was working to setup a button to shutdown the server. It's almost ready. I tried to understand how the client makes requests and how they are handled by the server. Prototyping a template engine to generate python code corresponding to analysis made in the GUI. I have gone through some the analysis in the GUI.

What is coming up next?

I have to cover all analysis in GUI as fast as I can. Then I will create notebook templates.

Did you get stuck anywhere?

Yep, unit test for the Shutdown Button is yet to implement.

 



from Planet Python
via read more

PSF GSoC students blogs: GSoC: Week 1: __init__.py

Hello everyone!

I am Niraj Kamdar, a third year undergraduate at DA-IICT - India. I will be working with CVE Binary Tool under the umbrella of Python Software Foundation. 

What is the CVE Binary Tool?

The CVE Binary Tool scans for a number of common, vulnerable open source components like openssl, libpng, libxml2, expat etc. to let you know if a given directory or binary file includes common libraries with known vulnerabilities. 

How it works?

We have checkers for popular open source libraries which contains methods which look at the strings found in a binary file to see if they match certain unique strings found in an open source library and try to guess it's version. We have a scanner module which recursively scans every binary file of the given directory and parse strings from the binary file and forward it to every checkers and checkers determine the vendor, product and version and pass it to the scanner then scanner look into local copy of NVD database and finds all the vulnerabilities associated with the given product and displays it. We supports many output formats like JSON, CSV and a nice console format.  

What did I do in Community Bonding Period?

I have fixed several bugs (like stale egg info, extractor bugs in windows etc.), written faster native python solution to replace c strings extension module and refactored whole checkers module to use object-oriented approach to reduce repetition of code. Previously, we have to write several functions when we were creating a checker, now all we need to do is write 5 class attributes. If you want to learn more about how to write a checker? checkout our contributing checker guidelines.
 

I also had video conference meetings with my mentors scheduled every week on Wednesday where we discussed about the project design and implementation aspects. Since, my project involves adding concurrency to the CVE Binary Tool. I was studying asyncio and concurrent.futures modules during this time. My mentor has also helped me and recommended few articles.

What am I doing this week?

I will be working on removing compiler dependency of test_scanner which is part of my GSoC project.



from Planet Python
via read more

PSF GSoC students blogs: First check-in to GSOC’20 @ Python Software Foundation

Hello! I am Aditya Sharma, a second year Computer Science student and a Linux enthusiast who is crazy about web performance. I am really excited to work with our team of amazing mentors, developers and designers at The EOS Design System. Cheers to my journey as I share what I did before the official coding period starts.

What did I do this week?

“Live as if you were to die tomorrow. Learn as if you were to live forever.” — Mahatma Gandhi

I spent much of my time in learning in-depth the technology stack involved for my project. This mainly includes Strapi, Node.js based headless CMS for the back end and React for the front end. I also learnt about MongoDB and API design principles by implementing a ToDo API with user authentication.

My project work for the week included creating the base with router, linter and formatter configuration used at EOS for client side implementation with Create-React-App.

To save time and energy in the future I followed DRY principle (Don’t repeat yourself) and built a custom template which enables us to select a template to create our project from, while still retaining all of the features of Create React App without ejecting. This is maintained here and we published it as a NPM package here (also my first :P). My mentor Cynthia guided me really well on how to automate the package release with semantic-release and GitLab CI/CD.

What is coming up next?

As planned with my mentors I will create some models in the eos-strapi instance. Models in Strapi are a representation of the database structure and are split into two separate files. A JavaScript file that contains the model options (e.g: lifecycle hooks), and a JSON one that represents the data structure stored in the database.

I will further collaborate with Devesh(my awesome GSOC partner :) to implement authentication, authorization and identification of users on the client (React) and server side (Strapi) which internally uses JWT (JSON Web Token).

Did I get stuck anywhere?

I came across one strange problem while developing the template for Create-React-App. My implementation on running did not download the development dependencies for the project. After exploring the create-react-app repository by Facebook I found a recent commit which fixes the problem here. It will be shipped to production soon. This also helped me to learn more about how our famous zero config create-react-app does that magic internally.

 

This marks an outstanding start to my GSOC journey with PSF and EOS which may continue even beyond time can track. Cheers to an awesome never ending journey :)

 



from Planet Python
via read more

Mike Driscoll: PyDev of the Week: Seth Michael Larson

This week we welcome Seth Michael Larson (@sethmlarson) as our PyDev of the Week! Seth is the lead maintainer of urllib3. He also writes a Python blog. You can see some of Seth’s other contributions over on Github.

Let’s take a few moments to get to know Seth better!

Can you tell us a little about yourself:

I’m a current resident and native from Minneapolis Minnesota, I got my degree in CS from the University of Minnesota.

I’m a big fan of Minnesota sports, Gopher and Vikings football, Twins baseball, Wild hockey. Besides that

I really enjoy being outdoors.

Why did you start using Python?

My first introduction to Python was in my “intro to CS” class at university. I fell in love with the simplicity of the language and the Open Source community. I’d known some programming before
going to university so it wasn’t my first programming language but I really enjoyed what Python had to offer.

I remember getting excited by how straightforward sockets and network programming were in Python compared to C or C++, that was definitely a feature that grabbed my attention.

What other programming languages do you know?

I know some basics about web frontend languages like HTML, CSS, JS but not enough to list them on my resume.99% of my language knowledge is Python-related, and it’s by far my favorite.

What projects are you working on?

I’ve been lead maintainer of urllib3 for almost a year now. A lot of my mental time for Open Source goes towards urllib3 and other HTTP-adjacent libraries.

Recently I’ve been writing about unique experiences I have with Python, HTTP, URLs, and TLS on my blog. A lot of the things I write about are so specific to those domains that they’re not for everyone but I’m trying to live the “be the change you want to see in the world” mantra by writing a blog that I would also like to read. 🙂

From a professional standpoint I recently joined Elastic as the maintainer of all the Open Source Python clients for Elasticsearch and other products and that’s been a ton of fun so far, it’s great to be getting paid full-time to contribute back to the Python OSS community.

How did you end up being a maintainer for urllib3?

I started contributing to urllib3 when Cory Benfield noticed me working on an HTTP server implementation in Python, invited me to join the Hyper project, and then basically followed him all the way back to the urllib3 project which he also contributed to. A few years of contributing later it was decided that when Thea stepped down from being lead maintainer that I would take her place as lead.

What motivates you to contribute to Open Source?

I’m a very social person so one of the biggest motivations for me personally is that I feel like I’m part of something bigger than myself. Being a part of such a global collaborative community is something that we as humans have never had the opportunity to do until modern times. Sign me up!

Which Python libraries are your favorite?

I think my favorite core module is ‘ssl’.

I can somewhat claim to know things about TLS and information security having worked in the space for a bit now, it’s great to play a part in pushing the security of an entire ecosystem forwards via urllib3. That’s something that’s pretty unique and I consider myself lucky to be a part of.

My favorite third-party package is ‘nox’, a task manager similar to ‘tox’ except the configuration is Python instead of toml/cfg. Any project I can use it on is instantly way better. Love it.

Thanks for doing the interview, Seth!

The post PyDev of the Week: Seth Michael Larson appeared first on The Mouse Vs. The Python.



from Planet Python
via read more

Sunday, May 31, 2020

PSF GSoC students blogs: Weekly Check-in #01

<meta charset="utf-8">

Hey all!! I'm Aghin Shah, a 3rd Year CS undergrad from IIT-Madras. I'll be working with DFFML, a sub-org under Python Software Foundation during GSoC on Implementing Distributed Orchestrator and Adding DataFlow tutorials.

 

What did I do this week?

I worked on setting up a DataFlow for coImplementingntinuous deployment of Docker containers. With the new flow, you can push your changes to GitHub, and it'll automatically pull and redeploy the defined containers. I've also been working on adding additional features to the CLI command for creating the DataFlow. We had meetings in the community (on Tuesdays and Fridays). Everyone was updated with the changes in the codebase. I also had an individual meeting with the mentor, where we discussed the possible ways to go about the project.

What is coming up next?

I'll be finishing patches for a couple of issues which I've been working on. I'll also start working on adding basic tutorials for DataFlow.

Did you get stuck anywhere?

There were a few places where I was confused, but my mentor is very active, so most of it was cleared by the day.



from Planet Python
via read more

PSF GSoC students blogs: Weekly Check-in #01 (Week #01)

>>> import Introduction
>>> Introduction.display()
Hello World! My name is Saksham Arora. I'm a 2nd year undergraduate student from India pursuing B. Tech in Information Technology. This is my blog for GSoC 2020 @ PSF!
Over the summer, I'll be working with DFFML under the umbrella of Python Software Foundation. My project for the summer is to Integrate Image Processing into DFFML!
 
 
GSoC 2020 Weekly Check-in #01 (Week #01 - 01/06/2020)

What did you do this week?

Since it was the last week of Community Bonding period, I worked on finishing a few pending issues assigned to me, researched and brushed up on important topics related to my GSoC project. In the community bonding period, we had virtual meetings (also called Weekly Syncs) twice a week where I interacted with the mentors to discuss about new features and enhancements for the project. Also, I went through a few videos and documentation on asynchronous functions in python which was recommended by one of the mentors as a part of understanding the codebase better!

What is coming up next?

I will be adding the capability to normalize the MNIST dataset and pre-process any image provided for prediction on the dataset using the CLI before feeding it to a machine learning model. I will be discussing with the mentors on the best approach to get started on my project and start working on wrapping the OpenCV library with DFFML this week!

Did you get stuck anywhere?

I briefly got stuck at a unittesting error where it was trying to create a test class out of a decorator function which it shouldn't be doing, I was eventually able to figure it out after thoroughly going through the importing section in the Python documentation.

 

I'm very excited to get started on this journey. I hope everyone does great this summer!
Thank you for reading!



from Planet Python
via read more

PSF GSoC students blogs: Week 1 check-in

Hello

Welcome to my blog. I am participating in this year's GSoC program for Panda3D - a suborgansiation under PSF. Today is the start of the coding period. Its 7:00 am in India here and I am starting this memorable day by writing my first blog here on this forum. I have been assigned the task to integrate Recast & Detour tools in Panda3D game engine. Already excited by the project idea, I started playing with the tools of Panda3D during the community bonding period. I did go through a lot of blogs and articles about "recastnavigation", which is the github repository that provides the Recast and Detour tools. Well, this was pretty much what I did in the previous month, but now starts the actual coding period. I plan to start by planning the classes and functions required to bring recast into the Panda3D world.

So yeah, I am very much excited to let you guys how all of it unfolds.

Let's start the journey! 



from Planet Python
via read more

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...