<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Julien Tanay on Medium]]></title>
        <description><![CDATA[Stories by Julien Tanay on Medium]]></description>
        <link>https://medium.com/@djiit?source=rss-3903c93579b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ti52JZ31C0_b1Z5EOgvnIw.jpeg</url>
            <title>Stories by Julien Tanay on Medium</title>
            <link>https://medium.com/@djiit?source=rss-3903c93579b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:01:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@djiit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How we started our own Design System Team]]></title>
            <link>https://medium.com/doctolib/how-we-started-our-own-design-system-team-2bbeecf9d1d1?source=rss-3903c93579b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bbeecf9d1d1</guid>
            <category><![CDATA[team-management]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[engineering-mangement]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Julien Tanay]]></dc:creator>
            <pubDate>Mon, 23 Jan 2023 15:46:20 GMT</pubDate>
            <atom:updated>2023-01-24T08:24:58.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVolmrpG-W0OYD91yR0NaA.png" /><figcaption>Illustration by <a href="https://www.linkedin.com/in/vanko-yutian-zhou-786541135/">Vanko Yutian Zhou</a></figcaption></figure><p>Product Design is a first-class citizen in our “Tech &amp; Product” Organization. Over the last year, one event was clearly making this statement a more tangible reality: we put together a team to work full-time on our Design System; here is the gist of “how and why we went there”.</p><h3>State of the Design</h3><p>Before we created the team, Doctolib’s Design System was mostly maintained by volunteers through an organization-wide “guild”. One of our core tech values is “Scale”: when our tech leaders realized that a well-maintained Design System was a key asset to achieve scalability, the organization decided to invest on it, making it a priority topic. On a more personal note, I’ve worked in the past with front-end developers and design systems and believed it was a real opportunity to enhance (frontend) developers experience at Doctolib.</p><p>Product Designers at Doctolib are using Figma, and developers use Typescript and React to build reusable components that are exposed in a Storybook. This is a very typical stack for the front-end. Our codebase is mostly organized as a monolith, so every change in our Design System is pretty quickly observed in our apps. It’s as convenient as it is dangerous and requires a large test coverage.</p><h3>3, 2, 1, Start!</h3><p>Ok, now, how do you start a team? Let’s try with a “vision” — a mission statement. Ours was to “bridge the gap between devs and designers with a common language: a design system”.</p><p>Working in Platform Engineering, you have to be product-minded to be as impactful as possible: to build an efficient backlog, we needed data. Data about the design system itself, but also its usage among the codebase.</p><p>Considering the state of the design system when we picked it up, we knew we had a huge debt backlog to tackle: from mis-aligned mockups to fragile code implementation, to missing typings or duplicate code. But how “huge” was it?</p><p>We instrumented our codebase to get a better idea of 2 main metrics:</p><ul><li>Our Design system usage (or “adoption” score) among different parts of our applications</li><li>Our components “quality score”</li></ul><p>We also created multiple Figma plugins and widget for data extraction and even our own Chrome extension to highlight components from the design system on a given web page on our apps.</p><p>What did we find? Well, without any particular priority order:</p><ul><li>Different quality levels</li><li>Untested or broken things (mockups &amp; code)</li><li>Overall Low Design System adoption (!)</li><li>Some components barely used and others over-used</li><li>but most importantly: lots of motivation to improve the current state of things!</li></ul><p>We combined these automated data extraction with a complete analysis of existing mockups (Figma pages) and code and *tada*, we had a full backlog ready to be tackled.</p><h3>Scaling the work</h3><p>Working as a Platform Team means we most of the time are not directly working on Design System components, but more spending our time being “Temple Guardians”, setting boundaries and rules, coaching people that need to implement a change in the library or reviewing their code — right before it gets into production and impact (positively!) all our applications.</p><p>We worked early on “change management”, asking every external contributor to go through a meticulous “Design Review” and to prepare proposal documents for every meaningful change. This was key for us to be able to coordinate efforts from 40+ Feature Teams.</p><p>Scaling our work was also about automating ourselves out. — or at least trying. We provided our developers with linter and formatters rules when applicable, to ensure conventions were respected everywhere in the code. Sometimes, we were even able to auto-correct parts of the code!</p><h3>Spreading the word</h3><p>The deeper we went into the Design System rabbit hole, the more we discovered teams from other companies working on the same missions. We started pinging them and organizing small, private meetups for the teams to meet and discuss their current challenges and achievements.</p><p>For us, it was about learning from others, and giving back what we learned. We had lots of ‘aha’ moments, realizing we all face the same challenges — with some variants. To all the people we met already — you’ve been a great source of inspiration and I hope we also inspired you!</p><p>Along the road, we had the opportunity to talk about our team creation and mission during many conferences: we could not have dreamed of a better way to assess our early achievements.</p><h3>What’s next ?</h3><p>To quote our very own CEO, “it’s only the beginning”. While we now focus on resorbing the debt accumulated over years, next months will be more exploratory: new or rebuilt components, accessibility assessment and improvements, developer experience focus.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bbeecf9d1d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/doctolib/how-we-started-our-own-design-system-team-2bbeecf9d1d1">How we started our own Design System Team</a> was originally published in <a href="https://medium.com/doctolib">Doctolib</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Release Notes v0.3.1]]></title>
            <link>https://medium.com/crtxgg/release-notes-v0-3-1-8ee5362f69fb?source=rss-3903c93579b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ee5362f69fb</guid>
            <category><![CDATA[release-notes]]></category>
            <category><![CDATA[electron]]></category>
            <category><![CDATA[esport]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Julien Tanay]]></dc:creator>
            <pubDate>Wed, 01 May 2019 14:27:35 GMT</pubDate>
            <atom:updated>2019-05-01T14:36:41.200Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone !</p><p>Last weeks, we were busy tackling some low-level tasks on the app, like managing configuration in a better way, fixing some recurring bugs or automating our new release deployment (I’ll talk about that in a more tech-focused blog post soon). We finally had some time to ship cool features and wanted to share some insights with you !</p><h3>Tray Icon support</h3><p>Windows and Mac users will discover a brand new Cortex icon in there status bar ! It now allows you to start or stop a session without displaying the whole app. This was a long awaited feature — please tell us what you think here or on Discord !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNumMxluSgWr9SwKVZlj4Q.png" /><figcaption>Look at that tiny icon !</figcaption></figure><h3>Launch app on startup</h3><p>This feature comes directly from one of our Sponsorise.me backers — <strong>Pikpik</strong> ! During the early beta days, he asked us if Cortex could be able to start with its system, allowing him to quickly start a session when he wanted to. We are proud to add this feature in this release, as with every feature suggested by our community. To all our beta testers : Thanks again for the kind words and advices! Cortex is your application too, and every day we build it with you, your feedback and your support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*urSTe2sZl46koX-LZWtsFQ.png" /><figcaption>“Launch app on startup” is now an available option !</figcaption></figure><p>Hey, listen! We recently stopped to actively support our Linux builds as we have only a few, barely active Linux users (and as we have only one super-develop the app!).<br>Are you a Linux user ? We need your help to test some new feature and make sure everyone gets the same Cortex experience on every platform. Come and say hello on Discord !</p><p><a href="https://crtx.gg/"><strong>Ready to try Cortex ? Follow this link !</strong></a></p><p><strong>Until next time !</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ee5362f69fb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crtxgg/release-notes-v0-3-1-8ee5362f69fb">Release Notes v0.3.1</a> was originally published in <a href="https://medium.com/crtxgg">Cortex</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cortex Tech Stack]]></title>
            <link>https://medium.com/crtxgg/cortex-tech-stack-c9318982ce2c?source=rss-3903c93579b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9318982ce2c</guid>
            <category><![CDATA[electron]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[vuejs]]></category>
            <dc:creator><![CDATA[Julien Tanay]]></dc:creator>
            <pubDate>Wed, 24 Apr 2019 16:33:07 GMT</pubDate>
            <atom:updated>2019-04-24T16:33:07.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Pgo_-V5t_BlvQI3VuPW2A.png" /><figcaption>Rare footage of a complete application stack, from deep back-end services to end-user application (allegory)</figcaption></figure><p>When we started the last (and current!) iteration of Cortex, we already had defined some goals we wanted to achieve from earlier versions of the app :</p><ul><li>build a cross-platform app;</li><li>build small, reusable and pluggable components;</li><li>have a strong process for designing and implementing components;</li><li>have a quick, iterative workflow.</li></ul><p>These where important goals for us, as we are big fans of continuous improvements method and we want to make our workflow better on every project we work on, and Cortex was no exception. Spoiler alert : we reached all of them. We did this by making strong, early decisions about our tech stack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*gDVATtrczu8-EEqqwcuGZA.png" /><figcaption>An overview of the Cortex tech stack</figcaption></figure><h3>State of the art</h3><p>When it comes to desktop programming, you have plenty of choice regarding the language you can use to build your app :</p><ul><li>You can use C# to target Windows or Objective C to target macOS. Eventually you will end up building 2 different apps for each platform; and that is not something we want here.</li><li>You can use plain C, C++ or even Python (which is one of my favorite and one I used to work with on a daily basis), all of them are good choices to build a cross-platform desktop app; but you will be fairly limited when it comes to designing your screens, menus, animations, etc.</li></ul><p>We wanted to do more and not having to rely on platform-dependent app components and give Cécile, our designer, full control over the app design decisions. Plus we didn’t want to spend more time learning new, platform specific or low-level languages.</p><h3>Web technologies</h3><p>Another option for building modern, cross-platform apps is Electron. Electron is a framework used by many business out there (<strong>Hello Discord !*</strong>) to make native desktop apps with web technologies. To put it (very) simply, Electron is a Chromium browser packaged with just your web-app and a bunch of native APIs to enable native apps features, such as supporting dark mode, adding tray icon, displaying notifications, and so on.</p><p>Using it allows us to design our application parts with CSS, HTML and JS; 3 easy to use languages, known by many developers — and designers ! Cécile and I are able to quickly iterate over a small part of the app, going from idea to code in no time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITBF4mm1B3aOCpx4bTisOA.png" /><figcaption>Electron allows us to use awesome Chromium’s Developer Tools</figcaption></figure><p>There are of course some drawbacks. For instance, your app size can become quickly huge (Electron itself is quite big) and it grows fast when you add dependencies. But this is unmatched with all the ease it give us on many sides.</p><h3>Frameworks and Libraries</h3><p>We are both fans of strong standards when it come to product development. I choose to use VueJS as our main Javascript framework to build reusable components across our application(s). We started by coding tiny parts and then assembled them to create an entire app ! VueJS is an awesome framework and has a vibrant community online; I’ll talk about it in a future blog post. We used it with TailwindCSS, another great framework with reusability in mind.</p><p>Cécile spent some time building a detailed Design System (again, we will cover this one in a separate blog post), highlighting every design aspect of Cortex, from fonts to panels size to colors to micro-interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*mNr7HVhJ09SkkxUXQhKm-g.png" /><figcaption>An example of small, reusable component : the “Big Numbers” card.</figcaption></figure><h3>Wrapping it up</h3><p>We use a modern, web-oriented stack to build our app and it perfectly fits all of our needs. You can find our full software stack <a href="https://stackshare.io/crtxgg">on our Stackshare page</a>. Feel free to comment anything !</p><p>See you next time !</p><p><strong>* Discord has a terrific Tech blog; this is a must-read. If someone over at Discord read this — you guys are a great source of inspiration in our design and development choices. Keep up the good work.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9318982ce2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crtxgg/cortex-tech-stack-c9318982ce2c">Cortex Tech Stack</a> was originally published in <a href="https://medium.com/crtxgg">Cortex</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting better with Cortex]]></title>
            <link>https://medium.com/crtxgg/getting-better-with-cortex-950e1d145732?source=rss-3903c93579b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/950e1d145732</guid>
            <category><![CDATA[games]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[esport]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Julien Tanay]]></dc:creator>
            <pubDate>Mon, 22 Apr 2019 15:57:11 GMT</pubDate>
            <atom:updated>2019-04-22T16:04:54.094Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome, stranger !</p><p>You are reading the very first Cortex post on Medium. Congratulations ! ✨</p><p>Cortex is a new way to improve your skills while you play (competitive) video games. How ? By tracking your performances during games. In a few words, it is a desktop app that sits next to your games and records some nice performances metrics, gathered in your personal Dashboard.</p><blockquote>Our goal : Create an app every gamer can use to measure their in-game performances in real time.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wn8XhqTsY_j6ZgtFLAxb8g.jpeg" /><figcaption>Your dashboard is where Cortex shows you every metric it gathers.</figcaption></figure><p>Clicks-per-minute, mouse speed or mouse-traveled kilometers : We wish we could use those data and many others to create the most complete gamer profile. Once you recorded your session, you can easily share your results on social networks, or share it with your mates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2lP10mi5NQIIEbsqBCoj5Q.jpeg" /><figcaption>Easy as 1–2–3 🎶</figcaption></figure><p><strong>Want to give it a try ? </strong><a href="https://crtx.gg/"><strong>Download Cortex</strong></a><strong>, launch it before you start to play and that’s it ! Every move is recorded and computed in real time by the app.</strong></p><p>Cortex is still in beta and we work hard to make it better with every release. “We” is an awesome army of two, Cécile and Julien, living and working in Paris, France ! Head over <a href="http://invite.gg/crtx">our Discord server</a> if you have any questions !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=950e1d145732" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crtxgg/getting-better-with-cortex-950e1d145732">Getting better with Cortex</a> was originally published in <a href="https://medium.com/crtxgg">Cortex</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Documenting your Flask-powered API like a boss]]></title>
            <link>https://becominghuman.ai/documenting-your-flask-powered-api-like-a-boss-b423a7c0f45e?source=rss-3903c93579b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b423a7c0f45e</guid>
            <category><![CDATA[swagger]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[flask]]></category>
            <dc:creator><![CDATA[Julien Tanay]]></dc:creator>
            <pubDate>Mon, 27 Nov 2017 16:59:44 GMT</pubDate>
            <atom:updated>2017-11-30T14:49:51.291Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFDoEnurtc7MJOMLcqQykw.jpeg" /><figcaption>Rare footage of a 100% complete API documentation printed on very old paper.</figcaption></figure><p>Flask is a very popular and powerful framework for building web applications. Over the last years, people used it to create REST APIs that work well with decoupled, modern front-end applications.</p><p>One challenge that backend development teams often face, is how to make it easy for front-end developers, whether internal or with a distant community, to create API-compliant clients (web app, mobile app or even CLI tools…)</p><p>In the wild, they are many good examples of well-documented APIs… Take the Twitter API : the docs are great, user-friendly and cover all the available endpoint with tips and examples. Any fresh CS student could write a small Python tool using it, just by following the documentation and its examples.</p><p>At @Ooreka, we decided to follow the <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md">OpenAPI</a> (f.k.a. Swagger 2.0) specification to build a solid documentation for our Flask-powered micro-services APIs. Let’s dive in.</p><h3>3…2…1… Doc!</h3><p>The first step for generating your documentation is to obtain a standardized spec file describing your API.</p><p>Thanks to the <a href="http://apispec.readthedocs.io/en/latest/">apispec</a> lib, you can automagically generate a specification file (commonly named swagger.json) from your Flask code. Some other libraries can do a lot of magic for you, but apispec is really simple to use and can sit next to your code without interfering with it. It supports <a href="http://apispec.readthedocs.io/en/latest/using_plugins.html">Marshmallow and Flask</a>, allowing you to re-use your code to generate a proper documentation !</p><p>Let’s write our generation script, e.g. app/scripts/openapi.py :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6848a24a29f69317242f2f4eec591611/href">https://medium.com/media/6848a24a29f69317242f2f4eec591611/href</a></iframe><p>Here, we first create a new APISpec instance with some details about our API. Then, we add our definitions (here, we are using Marshmallow to define how our API will serialize/deserialize data) with APISpec.definition(). Finally, we add our routes to our API specification using APISpec.add_path(). apispec will parse your route functions docstrings, so make sure you add some OpenAPI YaML stuff here, as in :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/451afb9f1ce6e4c9708ea40cea173eaf/href">https://medium.com/media/451afb9f1ce6e4c9708ea40cea173eaf/href</a></iframe><p>You will end up with a valid JSON API specification. Now, let’s see how to bootstrap an HTML version and show it to the world!</p><h3>Browserify-ing all this</h3><p>A really cool tool to do that is the <a href="https://github.com/Rebilly/ReDoc">ReDoc</a> Javascript library from the guys at <a href="https://apis.guru/">APIs.guru</a>. We’ll use it to present the generated JSON specification in a convenient way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bXib0QoiJR02O7MXBxgH9g.png" /><figcaption>Example of a HTML documentation with ReDoc.</figcaption></figure><p>ReDoc is basically a single, minified JS file you can include in a bare index.html file and tell it where your swagger.json is located. It uses a really neat 3 columns design : a navigation sidebar, a wide center section with your API endpoints definitions and a third column dedicated to requests or responses samples and examples.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cbeadfea5676238f8efaa9edab1eb36d/href">https://medium.com/media/cbeadfea5676238f8efaa9edab1eb36d/href</a></iframe><p>Yep, that was quick. Start a HTTP server (e.g. with python3 -m http.server) and go have a look at your cool, new documentation. All you have to do now is to host your HTML and JSON file on a server and you’re good.</p><p>You can check out a more complete, real-world example <a href="https://rebilly.github.io/RebillyAPI/">here</a>.</p><h3>Wrapping it up</h3><p>The OpenAPI offers many options I didn’t cover here for brevity and simplification. You can add your server’s real endpoints to the doc, add many details about the parameters and responses of your routes, provide examples in your routes functions doc-strings that will be parsed and added to your spec, etc…</p><p>As a final tip, head to the <a href="http://flask.pocoo.org/docs/0.12/cli/">Flask CLI</a> documentation to see how easily you can hook your generation script into the command line interface of Flask (this will give you some bad-ass command like FLASK_APP=main.py flask generate_doc). Oh, and make sure you put this into your Continuous Integration routine to keep your API documentation up-to-date with your API!</p><p>Cheers!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F8f5f8b%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F8f5f8b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href">https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href</a></iframe><figure><a href="https://becominghuman.ai/artificial-intelligence-communities-c305f28e674c"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*2f7OqE2AJK1KSrhkmD9ZMw.png" /></a></figure><figure><a href="https://upscri.be/8f5f8b"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*v-PpfkSWHbvlWWamSVHHWg.png" /></a></figure><figure><a href="https://becominghuman.ai/write-for-us-48270209de63"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*Wt2auqISiEAOZxJ-I7brDQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b423a7c0f45e" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/documenting-your-flask-powered-api-like-a-boss-b423a7c0f45e">Documenting your Flask-powered API like a boss</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pipfile and Pipenv : the future of Python dependencies management]]></title>
            <link>https://medium.com/@djiit/pipfile-and-pipenv-the-future-of-python-dependencies-management-8c0c5b6ec99b?source=rss-3903c93579b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c0c5b6ec99b</guid>
            <category><![CDATA[pip]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Julien Tanay]]></dc:creator>
            <pubDate>Thu, 02 Nov 2017 16:35:13 GMT</pubDate>
            <atom:updated>2017-11-06T15:58:08.787Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0W5d-49OkYaSGL-AFvSecg.jpeg" /><figcaption>Rare photo of a Python developer struggling with dependencies management.</figcaption></figure><p>Yes, I heared you. pip <em>is</em> a great tool and has been around for quite a long time. But for 3 years or so, people (contributors) have been looking for a way to enhance our packages management experience. Think about the superpowers of <em>composer</em>, <em>npm</em> (or better, <em>yarn</em>) in your favorite tool.</p><p>What they offer is (more or less) a replacement for the age-old requirements.txt file : the <strong>Pipfile</strong>.</p><h3>How I learn to stop worrying and love pip (again)</h3><p>The new <a href="https://github.com/pypa/pipfile">Pipfile</a> differs from the old-style requirements file in several ways :</p><ul><li>It uses <em>TOML</em> syntax to allow more configuration;</li><li>It declares dependencies groups (i.e. a default one plus a development one for... development packages) so you don&#39;t have to split your requirements into several files.</li><li>It comes with a Pipfile.lock file which pins the versions of your packages, in addition to some security bonus.</li></ul><p>Let’s have a look at a minimal, simple Pipfile:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7528003cf2ff211058272e1007159335/href">https://medium.com/media/7528003cf2ff211058272e1007159335/href</a></iframe><p>What do we have here :</p><ul><li>First we declare the source that pip is going to use. Typically, it will be <em>pypi</em>.</li><li>Then we declare our Python version requirement.</li><li>Finally, we declare our packages and development packages.</li></ul><p>You got it ? Now here is the example Pipfile from the official repository on GitHub :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fea62d47eec7e4a421ddb50f53cd9df6/href">https://medium.com/media/fea62d47eec7e4a421ddb50f53cd9df6/href</a></iframe><p>See ? With the TOML syntax, you can be very specific about the version, source or os-variant you want to use. Note that all packages versions are not pinned, even if it <em>was</em> <a href="http://nvie.com/posts/pin-your-packages/">the preferred way of declaring dependencies</a>.</p><p>Pip is going to support this specification in the future with a syntax like pip install -p Pipfile. Let&#39;s see how we can use all this magical stuff today.</p><h3>Back to the Future</h3><p>Meet <a href="https://docs.pipenv.org/">Pipenv</a> (yep, that’s another project from <a href="https://twitter.com/kennethreitz">Kenneth Reitz</a>, the guy behind <a href="http://httpbin.org/">httpbin</a>, <a href="https://gist.github.com/pep8.org">pep8.org</a>, and, yes, <a href="http://docs.python-requests.org/en/master/#">request</a>).</p><h3>Julien Tanay on Twitter</h3><p>the fuck when you realize @kennethreitz &#39;s pipenv just dropped a 🎃 in your shell. Made my day.</p><p>Pipenv is the current preferred implementation of Pipfile and allows you to manage your virtualenvs like a boss. It aims to ease and enhance how we manage our python environments (a la <em>virtualenvwrapper</em> or <em>pyenv</em>, but with <em>pip</em> skills).</p><p>Here is a simple workflow :</p><p>1- In your project directory, create your <em>virtualenv</em>. Pipenv will store it in a centralized place instead of your project root directory :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f226ecb110bd42c93ae37df5c08733f5/href">https://medium.com/media/f226ecb110bd42c93ae37df5c08733f5/href</a></iframe><p>2- Install some dependencies :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/764bebf2e561aa5d305e439b7618cbf8/href">https://medium.com/media/764bebf2e561aa5d305e439b7618cbf8/href</a></iframe><p>3- Use your <em>virtualenv</em>. It will open a new shell :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ac96ba744538ed9ab77efd1149796e6/href">https://medium.com/media/6ac96ba744538ed9ab77efd1149796e6/href</a></iframe><p>Note that we were not <em>in</em> our virtualenv before this command. Everything is handled for us by <em>Pipenv</em>.</p><p>From this point, you are good to go. Pipenv will help you manage your environment throughout your development process.</p><p>Finally, you shouldn’t be worried about compatibility issues with your deployment server (which is surely still using <em>pip</em> as you are reading this) : you can generate a good old requirements.txt by running :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/561663596df1a87d495d485c9331196b/href">https://medium.com/media/561663596df1a87d495d485c9331196b/href</a></iframe><p>Pipenv handles saving your dependencies and it even adds some security reinforcements by specifying each package’s hash.</p><p>That’s it. Go test Pipenv and tell me what you think !</p><p>Cheers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c0c5b6ec99b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>