<?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 Jeffrey McLarty on Medium]]></title>
        <description><![CDATA[Stories by Jeffrey McLarty on Medium]]></description>
        <link>https://medium.com/@jeffrey.mclarty?source=rss-2cee1de38bca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BgnNchJIQTjCPcUO.</url>
            <title>Stories by Jeffrey McLarty on Medium</title>
            <link>https://medium.com/@jeffrey.mclarty?source=rss-2cee1de38bca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:34:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeffrey.mclarty/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[Kicking the tires on Reth]]></title>
            <link>https://medium.com/@jeffrey.mclarty/kicking-the-tires-on-reth-82299ad2e5b5?source=rss-2cee1de38bca------2</link>
            <guid isPermaLink="false">https://medium.com/p/82299ad2e5b5</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[reth]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Jeffrey McLarty]]></dc:creator>
            <pubDate>Sat, 29 Jul 2023 03:25:11 GMT</pubDate>
            <atom:updated>2023-07-29T13:12:31.582Z</atom:updated>
            <content:encoded><![CDATA[<p>In the hunt for economical, innovative and fast queries to Ethereum data, Paradigm is building a new tool — Reth.</p><p>While it may still have a “not for production use” warning on <a href="https://github.com/paradigmxyz/reth">the repo</a>, and one of it’s key dependencies was de-platformed by GitHub last year, Reth is showing promise by building on the shoulders of geth, Erigon and Akula.</p><p>I distilled the docs for booting up Lighthouse and Reth down to the following snippet to get going with Reth from source, on a c2.small.x86 (6 core, 32 Gb of RAM) running Ubuntu 22.</p><pre># Install Rust<br>curl --proto &#39;=https&#39; --tlsv1.2 -sSf https://sh.rustup.rs | sh<br>source $HOME/.cargo/env<br>echo source $HOME/.cargo/env &gt;&gt; ~/.bashrc<br><br># Install Reth Dependencies<br>sudo apt-get install libclang-dev pkg-config build-essential<br><br>git clone https://github.com/paradigmxyz/reth<br>cd reth<br>cargo install --locked --path bin/reth --bin reth<br>cd ..<br><br># Install Lighthouse<br>curl -LO https://github.com/sigp/lighthouse/releases/download/v4.3.0/lighthouse-v4.3.0-x86_64-unknown-linux-gnu.tar.gz<br>tar -xvf lighthouse-v4.3.0-x86_64-unknown-linux-gnu.tar.gz<br><br># Generate a EL&lt;-&gt;CL Secret<br>sudo mkdir /secrets<br>openssl rand -hex 32 | tr -d &quot;\n&quot; | sudo tee /secrets/jwt.hex<br><br># Run Lighthouse<br>./lighthouse bn --network mainnet --execution-endpoint http://localhost:8551  --execution-jwt /secrets/jwt.hex --checkpoint-sync-url https://mainnet.checkpoint.sigp.io  --disable-deposit-contract-sync</pre><p>Then in a 2nd terminal…</p><pre># Run Reth<br>export RUST_LOG=info<br>cd reth<br>reth node --authrpc.jwtsecret /secrets/jwt.hex --authrpc.addr 127.0.0.1 --http --http.api all </pre><p>Within the first 1h and 40 mins, this is what the MDBX tables looked like. You can access via…</p><p>$ reth db stats</p><pre>| Table Name        | # Entries | Branch Pages | Leaf Pages | Overflow Pages | Total Size |<br>|-------------------|-----------|--------------|------------|----------------|------------|<br>| AccountChangeSet  | 8893      | 1            | 67         | 0              | 272 KiB    |<br>| AccountHistory    | 8893      | 4            | 307        | 0              | 1.2 MiB    |<br>| AccountsTrie      | 0         | 0            | 0          | 0              | 0 B        |<br>| BlockBodyIndices  | 8214001   | 215          | 47975      | 0              | 188.2 MiB  |<br>| BlockOmmers       | 824593    | 587          | 131154     | 0              | 514.6 MiB  |<br>| BlockWithdrawals  | 0         | 0            | 0          | 0              | 0 B        |<br>| Bytecodes         | 0         | 0            | 0          | 0              | 0 B        |<br>| CanonicalHeaders  | 17795444  | 3590         | 432311     | 0              | 1.7 GiB    |<br>| HashedAccount     | 8893      | 3            | 119        | 0              | 488 KiB    |<br>| HashedStorage     | 0         | 0            | 0          | 0              | 0 B        |<br>| HeaderNumbers     | 17795444  | 4432         | 319396     | 0              | 1.2 GiB    |<br>| HeaderTD          | 17795444  | 577          | 128836     | 0              | 505.5 MiB  |<br>| Headers           | 17795444  | 39471        | 4447789    | 0              | 17.1 GiB   |<br>| PlainAccountState | 8893      | 1            | 92         | 0              | 372 KiB    |<br>| PlainStorageState | 0         | 0            | 0          | 0              | 0 B        |<br>| PruneCheckpoints  | 0         | 0            | 0          | 0              | 0 B        |<br>| Receipts          | 0         | 0            | 0          | 0              | 0 B        |<br>| StorageChangeSet  | 0         | 0            | 0          | 0              | 0 B        |<br>| StorageHistory    | 0         | 0            | 0          | 0              | 0 B        |<br>| StoragesTrie      | 0         | 0            | 0          | 0              | 0 B        |<br>| SyncStage         | 13        | 0            | 1          | 0              | 4 KiB      |<br>| SyncStageProgress | 0         | 0            | 0          | 0              | 0 B        |<br>| TransactionBlock  | 6775321   | 195          | 43432      | 0              | 170.4 MiB  |<br>| Transactions      | 504449680 | 87642        | 19631333   | 1037490        | 79.2 GiB   |<br>| TxHashNumber      | 0         | 0            | 0          | 0              | 0 B        |<br>| TxSenders         | 0         | 0            | 0          | 0              | 0 B        |<br>| ----------------- | --------- | ------------ | ---------- | -------------- | ---------- |<br>| Total DB size     |           |              |            |                | 100.5 GiB  |</pre><p>Then, to get a block header from the CLI…</p><p>$ reth db get Headers 46147 .</p><pre>{<br>  &quot;parent_hash&quot;: &quot;0x5a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfc&quot;,<br>  &quot;ommers_hash&quot;: &quot;0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347&quot;,<br>  &quot;beneficiary&quot;: &quot;0xe6a7a1d47ff21b6321162aea7c6cb457d5476bca&quot;,<br>  &quot;state_root&quot;: &quot;0x0e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169&quot;,<br>  &quot;transactions_root&quot;: &quot;0x4513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598&quot;,<br>  &quot;receipts_root&quot;: &quot;0xfe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4&quot;,<br>  &quot;withdrawals_root&quot;: null,<br>  &quot;logs_bloom&quot;: &quot;0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&quot;,<br>  &quot;difficulty&quot;: &quot;0x153886c1bbd&quot;,<br>  &quot;number&quot;: 46147,<br>  &quot;gas_limit&quot;: 21003,<br>  &quot;gas_used&quot;: 21000,<br>  &quot;timestamp&quot;: 1438918233,<br>  &quot;mix_hash&quot;: &quot;0xb48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf4&quot;,<br>  &quot;nonce&quot;: 13425106025748017685,<br>  &quot;base_fee_per_gas&quot;: null,<br>  &quot;extra_data&quot;: &quot;0x657468706f6f6c2e6f7267&quot;<br>}</pre><p>And…</p><p>$ reth db get Transactions 0</p><pre>{<br>  &quot;signature&quot;: {<br>    &quot;r&quot;: &quot;0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0&quot;,<br>    &quot;s&quot;: &quot;0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a&quot;,<br>    &quot;odd_y_parity&quot;: true<br>  },<br>  &quot;transaction&quot;: {<br>    &quot;Legacy&quot;: {<br>      &quot;chain_id&quot;: null,<br>      &quot;nonce&quot;: 0,<br>      &quot;gas_price&quot;: 50000000000000,<br>      &quot;gas_limit&quot;: 21000,<br>      &quot;to&quot;: {<br>        &quot;Call&quot;: &quot;0x5df9b87991262f6ba471f09758cde1c0fc1de734&quot;<br>      },<br>      &quot;value&quot;: 31337,<br>      &quot;input&quot;: &quot;0x&quot;<br>    }<br>  }<br>}</pre><p>…to be continued.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82299ad2e5b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is a question worth a streaming revenue share? Yes.]]></title>
            <link>https://medium.com/@jeffrey.mclarty/is-a-question-worth-a-streaming-revenue-share-yes-fad085581457?source=rss-2cee1de38bca------2</link>
            <guid isPermaLink="false">https://medium.com/p/fad085581457</guid>
            <category><![CDATA[lightning-network]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[podcasting]]></category>
            <category><![CDATA[payments]]></category>
            <dc:creator><![CDATA[Jeffrey McLarty]]></dc:creator>
            <pubDate>Sat, 11 Jun 2022 13:32:47 GMT</pubDate>
            <atom:updated>2022-06-15T00:24:22.514Z</atom:updated>
            <content:encoded><![CDATA[<p>Before I woke up yesterday, a stranger was <strong>streaming </strong>me money. Then another stranger. Then a third. Not a distracting number of people. Or anything close to a material amount of money. Just enough to be remarkable.</p><p>I’ll explain the “how”, then share the “story”. After, I want to explain the rational for posting this— “why”.</p><h3>The How</h3><p>I intentionally used the word streaming, because it was flowing. The money was flowing like music, video — or data. Tiny, tiny amounts of money per minute.</p><p>There is a cocktail of interesting technology and cultural changes flirting together to make this happen.</p><p>1. Pod Casting 2.0</p><p>2. The Lightning Network</p><p>3. A “Value 4 Value” movement</p><p>It’s quite the unlock for application developers, users, entrepreneurs and fintech companies. Interesting new <a href="https://strike.me/">business</a> <a href="https://stakwork.ai/">models</a> <a href="https://stacker.news/">are</a> <a href="https://amboss.space/magma">being</a> <a href="https://www.fountain.fm/">iterated</a> <a href="https://zebedee.io/">on</a>, enabled by the programmability of money, micro transactions, and low fees. Pod Casting is proving to be one of the areas for evolution.</p><p><a href="https://www.kevinrooke.com/podcast">Kevin Rooke’s show</a> is at the center of all three. His show is 1 of 7300 (and growing), pod cast 2.0 shows, integrated with the lightning payment network. This integration enables his listeners to send one-time instant payments (“boosts”) or setup the automatic transmission of tiny amounts by the second or minute of listening (“stream”). Both are forms of appreciation for the show. This is done P2P using mobile apps that are compatible with both the lightning network and pod casting 2.0 protocols.</p><p>Kevin doesn’t price his product. His users do. They just pay what they think it’s worth. I’ll be honest, at first I thought it was a doomed model. It reminded me of Wikipedia. But my opinion on it has completely flipped. Verdict is still out if this will scale. Only time will tell. So far, the growth seems real and high.</p><p>The lightning network and distributed nature of pod casting 2.0 seems to change a pod-caster’s operational flexibility, the experience in the community, the incentives and transparency of the business. When ever a user boosts Kevin, they get a receipt showing the amount of money that was directly sent to select suppliers, partners, or guests— instantly. It’s atomic. Because the revenue share is programmable, Kevin can set up different terms on a per-episode basis. It wouldn’t be economically viable to use legacy money in a distributed P2P way to do this. This is unlocked because of lightning.</p><h3>The Story</h3><p>A few days ago, Kevin challenged his listeners.</p><blockquote>“send in questions, for my next guest, <a href="https://twitter.com/therealkingonly">Roy </a>— the creator of the <a href="https://twitter.com/breez_tech">Breeze App</a>. For the best question, I’ll add that user to the show’s splits”.</blockquote><p>I sent in a question via the amazing <a href="https://www.fountain.fm/">Fountain.fm</a> app being built by the <a href="https://twitter.com/MerryOscar">merriest of Oscars</a>. Kevin judged my question the best. So he added me to the show’s splits. “Splits”, is a term for how the the boosts or streams will be broken down across partners, select suppliers, show guests and now me — a listener!</p><p>All Kevin had to do, was put in my lightning address jeffrey@fountain.fm (kind of like an e-mail address for money). Then, any pod cast 2.0 compatible wallet would automatically route money to me.</p><p>I was given a revenue share. A programmed, instant, transparent, revenue share. For asking a good question. Below is a photo of what that looks like to any user. You can see, the breakdown, of where the revenue will flow for this specific pod cast episode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*5v6yPTd9GOHv4AWiNbsZnw.png" /></figure><p>He paid me what he thought a good question was worth to him. A fraction of the show’s revenue. Value 4 value. I didn’t set a price on my question. He didn’t set a price on the episode. Yet, we traded.</p><p>At 4:59 AM EST, a user started streaming money into Kevin’s show. The show’s splits kicked in, and my portion of the revenue was streamed direct to me into my fountain wallet.</p><p>Fountain — the app where I listen to great pod casters like Kevin, discuss the future.</p><h3>Why?</h3><p>Admittedly, this is an odd thing to post online. A few reasons I wanted to share.</p><h4>Its Neat</h4><p>I just think the entire thing is neat. I’m a noisy first-adopter. Sorry about that. :)</p><h4>Its Hope</h4><p>During recessions, bear markets, down-turns, layoffs — bad times— the optimists reap the rewards. Innovation and community, to me, are both needed for hope, and thus risk taking. Risk taking is ultimately what will pull the world out of any recession. Both innovation and community, help me, and hopefully others, stay optimistic. This post, is but my two-sat contribution to that.</p><h4>Its Clean</h4><p>The aggregate environmental impact of humans bothers me. Golf balls. Fast cars. Pollution. Private jets. And the Bitcoin’s base layer.</p><p>I wish we could have all those things without the tax to the planet.</p><p>The lightning network effectively squeezes <em>way </em>more utility out of the energy spent on Bitcoin. Energy wise, as long as your just transacting on lightning, it’s borderline free in terms of wattage. I’ve done probably 300x the transactions on lightning, as I have with Bitcoin. It’s empirically more useful to me than the base layer. The total amount of transactions happening on Lightning right now, are estimated to be on the same order of magnitude as the Bitcoin base chain. This means we’re getting approximately (very hand-wavy number here) twice the utility out of the same energy foot-print compared to approx. ~2 years ago.</p><p>Bitcoin is getting more useful per unit of environmental impact —very quickly. The environmental argument, will 100% be completely shattered within 4 years and I think it’s important for my associates to know this.</p><h4>Its Programmable</h4><p>When we switched from analog to digital clocks, clocks became more useful because we could program them.</p><p>When we switched from analog to digital thermostats, controlling our HVAC became more practical and efficient because we could program them.</p><p>When we switched from analog phones to smart (digital) phones… …because we could program them.</p><p>When we switched from analog (film) cameras to digital cameras… …because we could program them.</p><p>We’re switching to programmable money one-way or another. Capital is now digital. That makes it programmable.</p><p>But the programmable stuff, needs programmers to take the leap first. They will. They are. I just know a bunch of them, and want them all to reflect on what could be built. Maybe this post sparks an idea that changes a business plan or career.</p><h4>Its a Conversation Starter</h4><p>The revenue share model has accelerated the plans of many entrepreneurs here by aligning incentives between investors and founders. While I’m just an Engineer, I’m technically in the revenue share business right now. So I wanted to share with the leaders in my industry to see what might come from any discussion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fad085581457" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Could we use programmable capital to quantify a risk-free rate proxy?]]></title>
            <link>https://medium.com/@jeffrey.mclarty/could-we-use-programmable-capital-to-quantify-a-risk-free-rate-proxy-eee78e133d68?source=rss-2cee1de38bca------2</link>
            <guid isPermaLink="false">https://medium.com/p/eee78e133d68</guid>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Jeffrey McLarty]]></dc:creator>
            <pubDate>Sat, 27 Apr 2019 15:24:01 GMT</pubDate>
            <atom:updated>2019-05-16T21:59:59.793Z</atom:updated>
            <content:encoded><![CDATA[<p>You won’t get very far into the study of economics without somebody bringing up the theoretical idea of a “risk-free-rate” (RFR). This concept transcends any technology, legal or political construct. The crypto community is not immune to the theory and its implications.</p><blockquote>“Currently there exists no benchmark discount rate for crypto assets. This makes it very challenging for investors to build out valuation models in the space.”</blockquote><blockquote>—<a href="https://medium.com/@john_19547/finding-an-appropriate-discount-rate-for-crypto-currencies-14ff6190048b"> Jon Todaro</a></blockquote><h4>Background of the Traditional Financial System</h4><p>There are many issues with the current Risk-Free Rate. In practice, the best we can get is a society, industry or community-level consensus about which proxy to use. It’s boring stuff, but necessary. In the US, in some circles, the 3-month Treasury Bill is often used. In others, they choose the 10-year. Can that rate really be annualized? Is the US Government really free of risk? What happens as certain countries hover near negative rates? Is there a sliver of risk associated with USD? Academics have already tried beating this topic to death.</p><h4>Crypto Credit, No Risk-Free Options</h4><p>There has been a cambrian-explosion-like event in the last year or two, enabled by blockchain technology surrounding innovative new lending products. Dai, Dharma, Celsius, Compound, Nexo, ETHLend, just to name a few of the cool kids. All of them are experimenting. Some of them are starting to reach scale. The investors in those communities, whether they know it or not are pricing the risk involved with those loans. Parallel markets are forming. Depending on the architecture of the technology and market microstructure, if you sliced the risk premium many of those loans include risks such as:</p><ol><li>Smart Contract Logic Risk — The risk that the programmable capital has an unintended error.</li><li>Smart Contract Exploit Risk — The risk that the programmable capital has a potential exploit which is not caught or known by audit.</li><li>Borrower Credit Risk — The probability the debt will be serviced.</li><li>Collateral Risk — The risk the collateral will fall in value.</li><li>Liquidation Risk — The risk that the collateral liquidation system will function as expected.</li><li>Stability Fee Risk — The risk that the Dai stability fee will change.</li><li>Currency Risk — The risk of non-local currency volatility.</li><li>Inflation Risk — The risk that inflation rates will change. Note this is different than an inflation premium, which is a market’s attempt to price current expectations.</li></ol><p>When you account for these risks, in a probabilistic way, a risk premium emerges — which is added on top of the RFR, and any other premium (liquidity, inflation, etc.) to get an accurate yield.</p><p>The more interesting half of the crypto community has no elected government, and therefore no authority to issue risk-free bonds, to see what rate it trades.</p><h4>The Ask</h4><p>So, I ask the community — should we make a risk-free proxy? Should we run an experiment, similar to how the community effectively experimented with ENS, where we all kind of said: “Let’s try exploring this, and see what we learn”? Would the builders who follow, benefit from the insights we might gain? The code we might write? The market data which is revealed?</p><h4>How could we do this? Programmable Capital.</h4><p>If the community created a pot of money then sold that pot at auction, we would gain a proxy for the RFR. Imagine the headlines if the ETH RFR was proven lower than the US Governments.</p><p>The business logic of the smart contract would include 3 phases:</p><ol><li><strong>Create a block-time like rolling term structure</strong> which effectively gives us, say, 12 discrete pools of money. At T=0, these pools might be labeled month-13, month-14, month-15…month-25.</li><li><strong>Allow the community to donate for a period of time to the pools </strong>of their choice. At the end of the donation period, say 12 months (T=12 months), the pools would become 1-month, 2-month…12-month.</li><li><strong>Sell the rights to the pool of capital at auction.</strong> The winning bidder gets their own capital locked up for the same term, plus the capital which was donated to the pool.</li></ol><p>This would create a series of instruments that would form a 12 month yield curve. That yield curve would reveal a risk-free-rate of crypto.</p><p>Optionally, it would be nice if a secondary market could form but I haven’t figured out how to guarantee it would.</p><h4>Eliminating Risk</h4><p>In practice, we could only get to a point of near-risk-free. Like all current proxies. All of the above would have to be done with code that is free of any governance, or even need for governance. Free of any middle-men. And audited extremely heavily. All actors involved would need to be completely altruistic in their pursuit for it to work. There is a subset of academics and a subset of open source devs who operate only for the sake of curiosity.</p><h4>Who would chip in?</h4><p>I would. I’d kick in to see what happened. To be part of the pioneers helping to bring transparency to models for the rest of the defi community? Hell yeah! Think of the financial liberalization which might be accelerated by the resulting data. I also imagine certain foundations, think-tanks, and sponsors might see value in this experiment. Anybody who has ever funded research about the risk-free-rate might participate. Basically, curious rich people and institutions. Maybe a badge, or something, is earned for any donation to the pools. Maybe we sell tongue-in-cheek T-shirts, “I helped quantify risk free crypto”.</p><h4>How much is necessary?</h4><p>If we found a way to raise even $1M, and the market bid on this, that could create something on the order of a $50M to $200M worth of notional — depending on the rate. Do you think there is $100M worth of crypto out there, which would bid on the pool? I do.</p><h4>Who’s with me?</h4><p>I have sufficient finance and technology knowledge to lead and execute this alone. However, given my other commitments in life, this would effectively be just a hobby. So if I do it alone, it might take a while — plus, it likely won’t work unless the community is supportive and ready to help.</p><p>All I want to know is…</p><h3><strong>Do you think this is a valuable idea?</strong></h3><p>Let me know. A clap on this article, or a star <a href="https://github.com/jnmclarty/rfrexp">on this repo</a> would signal sufficient feedback for me to push forward. Also, feedback on reddit is welcome too — please assume I’ll be lurking.</p><p>Note: I need to confirm with my employer that this isn’t a conflict with our policies somehow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eee78e133d68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing PyEnvDiff-lib and a Hub & Spoke Python Environment Diff Tool]]></title>
            <link>https://medium.com/@jeffrey.mclarty/introducing-pyenvdiff-lib-and-a-hub-spoke-python-environment-diff-tool-fac678d5865a?source=rss-2cee1de38bca------2</link>
            <guid isPermaLink="false">https://medium.com/p/fac678d5865a</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Jeffrey McLarty]]></dc:creator>
            <pubDate>Mon, 19 Nov 2018 14:16:41 GMT</pubDate>
            <atom:updated>2018-11-19T14:46:03.529Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>Comparing python environments is now easier than ever, because of the release of <a href="http://pyenvdiff.com/">PyEnvDiff</a> v0.3.</p><p>Have you ever had code work on your machine, but not another, due to a difference in installed libraries, version of python, or something else in the environment? Or tried to help somebody get something running, only to learn too late that their environment has a problem? PyEnvDiff tackles these challenges and more.</p><p>PyEnvDiff is a pure-python, dependency-free, library and tool that collects, organizes, displays and saves information about any python environment (2.6 to 3.8 or fork, any OS), and then enables both humans and computers to compare.</p><p>It is powerful even for a single environment, to get an overview of the current state. From just one command you can take a look at <a href="https://raw.githubusercontent.com/jnmclarty/pyenvdiff-lib/master/docs/examples/console_info.out">sys.path, which versions of what packages are installed, and the exact specs on the interpreter</a>. When you have two or more python environments diffs can be performed. It’s your choice how. You can do a comparison between any two environments via files you manually move around. There is also a builtin HTTP service, which one or more python interpreters can send environment information to, in hub &amp; spoke pattern. The one python environment becomes a server with a simple HTML UI that enables both a <a href="https://htmlpreview.github.io/?https://github.com/jnmclarty/pyenvdiff-lib/master/docs/examples/environment_info.html">view for the one environment</a> and a <a href="https://htmlpreview.github.io/?https://github.com/jnmclarty/pyenvdiff-lib/master/docs/examples/home.html">hub-like menu</a> for running <a href="https://htmlpreview.github.io/?https://github.com/jnmclarty/pyenvdiff-lib/master/docs/examples/environment_diff_view.html">diffs on any two</a> (or more) other interpreters which act as spokes. The environment information sent to the hub is all stored in RAM. So, its gone after a restart.</p><p>Other use-cases could include confirming deployments went as planned systematically, asking users (say in a GitHub issue thread) to send information about their python environment in a standardized and comprehensive way, doing a survey across a set of environments, seeing what is actually available in a serverless setting, adding an endpoint on any web-app back-end to display intelligence about the app’s environment, or supporting environment parity activities.</p><p>The object model for the library centers around a set of subclasses of a “Collector” base class. A Collector captures intelligence about a python environment, or fails to so gracefully, as well as serializes the information for enabling displaying on the command line, in JSON, or HTML.</p><p>The pyenvdiff-lib package includes the command line utility, hub-style server with web-UI, and spoke-style client. The package just needs to be anywhere on your PYTHONPATH or installed via <strong>pip install pyenvdiff</strong>; you will have all 3 tools plus a library for programmatic usage. Nothing but the package itself will be installed.</p><p>The GitHub <a href="https://github.com/jnmclarty/pyenvdiff-lib/blob/master/README.rst">README</a> has more information.</p><p>Any feedback is appreciated. Feel free to <a href="https://github.com/jnmclarty/pyenvdiff-lib/issues/new">make an issue on GitHub for anything related at all</a> or e-mail me via the contact information <a href="http://jeffreymclarty.com/">on my site</a>.</p><p>Thanks to the <a href="https://github.com/jnmclarty/pyenvdiff-lib/blob/master/AUTHORS.rst">contributors</a>, developers who have provided feedback already, and the PyCon Canada 2018 sponsors, organizers, and attendees for the enthusiasm and sprint-time to encourage further development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fac678d5865a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>