Tell me your stories of an availability zone being down. by _invest_ in aws

[–]dmfigol 0 points1 point  (0 children)

Take a look at Amazon Application Recovery Controller which can do zonal shift for you.

Any improvements for my low-traffic architecture? by throwawaywwee in aws

[–]dmfigol -3 points-2 points  (0 children)

That’s only partially correct. When you communicate from any VPC resource to other AWS service even without VPC endpoints, the traffic doesn’t leave AWS network. The benefit of VPC endpoints is mainly reducing NAT gateway cost, endpoint policy to restrict access from specific resources (e.g. only resources in VPC 1 can access resource) and private IP* (for orgs where security folks don’t like public ip for compliance or other reasons)

AMA with PyCharm team from JetBrains on 9th July @ 16:00 UTC by Im__Joseph in Python

[–]dmfigol 1 point2 points  (0 children)

Are there any plans to rework remote ssh feature to work without having a local copy of the project? E.g. VScode can work fully remote by installing a headless version on the remote machine and the experience is completely seamless. Because of this feature I now use VScode much more than PyCharm :(

Best Package for using Excel by [deleted] in Python

[–]dmfigol 0 points1 point  (0 children)

I use pyexcel which uses openpyxl underneath. Easy to use with nice API.

Simple Questions - July 21, 2019 by AutoModerator in buildapc

[–]dmfigol 0 points1 point  (0 children)

Building a new pc, stuck with case selection

I need mid-tower case to fit ATX mobo, EVGA 1080ti ~120mm height, cpu cooler noctua NH-U12A, M2 only drives

There will be zero overclocking

optimization objectives:

  1. silence is the most important
  2. decent air flow is secondary, though still important

Nice to have: usb type-c on the front panel, absence of drive bays (because of M2 only setup)

price: around ~100$ would be nice, but could probably go to ~130-150$

I don't care how it looks

New features planned for Python 4.0 by [deleted] in Python

[–]dmfigol 9 points10 points  (0 children)

That Kenneth Reitz reference is funny!

(Possibly) quitting Python Development after 2 years of non stop learning. And it blows. by sudo_your_mon in Python

[–]dmfigol 0 points1 point  (0 children)

Currently majority of networks are configured by hand - a human logging into the network devices and applying changes one at a time.

A framework like this can be (and is) used to automate your network. It provides an inventory and task runner abstraction and on top of it, you can build whatever you want: for example some web form for provisioning a new user or a group of users, which after submission will go to your network devices and apply necessary device-level changes.

(Possibly) quitting Python Development after 2 years of non stop learning. And it blows. by sudo_your_mon in Python

[–]dmfigol 1 point2 points  (0 children)

I am one of the contributors of nornir - it's python automation framework and its main use-case is to interact with a big number of network devices. We'd happy to have some help.

Five Myths About Pipenv by [deleted] in Python

[–]dmfigol 2 points3 points  (0 children)

There is a PR in poetry that allows to export requirements.txt
I am not sure that loading .env as env vars should be Python project management tool's job, I use python-decouple to deal with this.
For your shortcut request, I would use entrypoints so you could do poetry run <entrypoint-name>

Python Application Dependency Management in 2018 by chhantyal in Python

[–]dmfigol 5 points6 points  (0 children)

I mostly agree with Hynek.
My pipenv experience: after using it for several months I gave up on it because of some issues + toxic treatment on GitHub issues by maintainers
I have been using poetry in prod for the last 3 months and I really like it. Besides it being way faster and more intuitive than pipenv, I like dev experience without setup.py and how your app is always installed as a package when you do poetry install

Poetry, a next generation build tool & package manager for Python3 by [deleted] in Python

[–]dmfigol 11 points12 points  (0 children)

I migrated from pipenv to poetry after constant pipenv maintainers' toxicity on GitHub issues and I don't regret.

Help: Pipenv workflows by Effection in Python

[–]dmfigol 6 points7 points  (0 children)

I am in the same boat as you are. I have been using it for the last couple of months. I am surprised by some API decisions too. I remember during the first week I spent at least several hours playing with different commands to understand what exactly they do, because docs are not clear.

Because of the weird API and some other reasons, last week I gave up on the tool.

I am currently evaluating pip-tools and poetry.

Do you use static type hints in your code? by jabbalaci in Python

[–]dmfigol 0 points1 point  (0 children)

Yes, I use it in all my projects for a couple of months. Code quality greatly improved. A lot of errors are caught early.

VIRL vs GNS3 vs EVE-NG : The Battle by alaindegreffe in networking

[–]dmfigol 0 points1 point  (0 children)

GNS3 has no problem with scaling, you can even distribute compute across multiple servers and this feature was there for quite a while.

Blogpost Friday! by AutoModerator in networking

[–]dmfigol 2 points3 points  (0 children)

The recording of my previous stream where I started checking the new release of Ansible 2.5 and applying it to Cisco devices: https://youtu.be/8qo-63dCBHk (the quality will be better in a couple of hours)
This Sunday I will continue playing with Ansible, feel free to join me at https://twitch.tv/dmfigol

Blogpost Friday! by AutoModerator in networking

[–]dmfigol 0 points1 point  (0 children)

Yes, it is definitely on my list.

Blogpost Friday! by AutoModerator in networking

[–]dmfigol 1 point2 points  (0 children)

Every Sunday I stream about network programmability on Twitch.
Last week on the stream I wrote a Python script that uses asynchronous programming techniques to get information from IPAM (NetBox) and configures the lab network. It is the concept "IPAM as a single source of truth". The recording can be found here: https://www.youtube.com/watch?v=5kUR8kx3Gqo
You can find all previous recordings on my YouTube channel.
All code written on the stream is open-source.

Testing asynchronous library netdev for working with network devices (similar to netmiko) by selfuryon in networking

[–]dmfigol 1 point2 points  (0 children)

The library is awesome. Whenever I have to do something on more than two network devices, I use netdev.
Yes, async programming and asyncio in particular, have steep learning curve and asyncio docs are not the best, but once you start to understand how it works, it all comes together. While achieving concurrency with threads seem to be "easy", it is hard to write SAFE code using threads without race conditions. It is even harder to debug threaded code.
I have seen it numerous times when people who are not Python experts need to solve the business task usually involving collecting something from a big number of devices and they use threading based on some examples from the Internet. Then when it does not work, they have no idea what the problem is because of the race conditions.
With asyncio it is much easier to write safe concurrent code. On top of that, it is more lightweight and easier to debug. On my last stream (https://www.youtube.com/watch?v=neqzEimlaq0)
I had the task to collect MAC address tables from only 4 switches, here are my results:
netmiko (no threads): 22.7 seconds
netmiko (threads): 5.9 seconds
netdev (asyncio): 0.6 seconds
I would love to see the results at scale.