<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: alfonsocv12</title>
    <description>The latest articles on DEV Community by alfonsocv12 (@alfonsocv12).</description>
    <link>https://dev.to/alfonsocv12</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F198020%2Ffd286a16-f119-46be-a02c-d7a4f4c1454d.jpg</url>
      <title>DEV Community: alfonsocv12</title>
      <link>https://dev.to/alfonsocv12</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alfonsocv12"/>
    <language>en</language>
    <item>
      <title>Handle your python libraries with mmp</title>
      <dc:creator>alfonsocv12</dc:creator>
      <pubDate>Fri, 07 May 2021 12:20:12 +0000</pubDate>
      <link>https://dev.to/alfonsocv12/handle-your-python-libraries-with-mmp-3p66</link>
      <guid>https://dev.to/alfonsocv12/handle-your-python-libraries-with-mmp-3p66</guid>
      <description>&lt;p&gt;I have been working on a CLI program called mmp. The inspiration to create this program started this year.&lt;/p&gt;

&lt;p&gt;I started using yarn for my personal page (&lt;a href="https://alfonsocvu.me" rel="noopener noreferrer"&gt;link&lt;/a&gt;). I fell in love with how easy was to use, but when I came back to my job as a python backend engineer I remember the reality of the language.&lt;/p&gt;

&lt;p&gt;We are missing so many things that javascript handlers like yarn and npm have. They don't stop by installing the libraries globally on the system, you can install them locally on a project, and that's the default case because most of the time you want that to happen. Also, they have a custom script that you add to a package.json for you and the whole team that's developing on the project.&lt;/p&gt;

&lt;h2&gt;
  
  
  This is what we have today
&lt;/h2&gt;

&lt;p&gt;Local libraries just for one project, aren't new to Python, the virtualenv library has been out for years now and handles the local environment great, but is lacking some features that we could use. like automatically updating our readme.txt file and running the programs without the:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;source &lt;/span&gt;virtualenv/bin/activate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The mmp way
&lt;/h2&gt;

&lt;p&gt;This program runs alongside virtualenv actually uses it at its core. The big difference is how much more natural is to use.&lt;/p&gt;

&lt;h3&gt;
  
  
  Installation and examples
&lt;/h3&gt;

&lt;p&gt;The project is on alpha so will be getting better, but for now to&lt;/p&gt;

&lt;p&gt;If I hype you and you are interested in the program just. Try it out, to install globally use pip like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;mmp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And to start using the CLI creates a new folder and install some libraries like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;mmp &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;your_module]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command will create everything that you need to start programming, creating a virtualenv named pip_modules and creating a new requirements.txt adding the module that you installed.&lt;/p&gt;

&lt;p&gt;There are a lot more commands that you can use. And if you have any questions about them use the -h flag&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2qnpp7d1cvaej1b069px.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2qnpp7d1cvaej1b069px.gif" alt="Example"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  More About the project
&lt;/h3&gt;

&lt;p&gt;Here is the documentation page if you have any problem with it and remember the project is Open Source, so if you want to give me a hand just fork the repo&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mmp.alfonsocvu.me" rel="noopener noreferrer"&gt;Docs.&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/alfonsocv12/mmp" rel="noopener noreferrer"&gt;Repo&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>virtualenv</category>
      <category>pip</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
