Hello our valued visitor, We present you the best web solutions and high quality graphic designs with a lot of features. just login to your account and enjoy ...

<none>

Hello our valued visitor, We present you the best web solutions and high quality graphic designs with a lot of features. just login to your account and enjoy ...

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
5 + 12 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Tech News

News ID Title News Details
94,837 Show HN: Vim Tutorial as RPG

Article URL: https://vim-adventures.com/

Comments URL: https://news.ycombinator.com/item?id=32950623

Points: 54

# Comments: 8

94,838 Balancing “If it ain’t broke, don’t fix it” vs. “Release early and often”

Article URL: https://www.redhat.com/en/blog/balancing-if-it-aint-broke-dont-fix-it-vs-release-early-and-often

Comments URL: https://news.ycombinator.com/item?id=32950811

Points: 72

# Comments: 67

94,839 The road to Zettalinux

Article URL: https://lwn.net/SubscriberLink/908026/6284e31d9060a6ec/

Comments URL: https://news.ycombinator.com/item?id=32950988

Points: 225

# Comments: 137

94,840 Show HN: Morgan – PyPI Mirror for Restricted/Offline Environments

Mirroring PyPI packages for environments/networks that do not have access to the Internet is hard. It's actually hard even in environments that do have access to the Internet. Most solutions out there either:

1. Depend on pip to download and cache package distributions. This means those downloads will probably only work in a similar environment (same Python interpreter, same libc), because of the nature of binary package distributions and the fact that packages have optional dependencies for different environments.

2. Depend on other PyPI packages, meaning installing the mirror in a restricted environment in itself is too difficult.

3. Cannot resolve dependencies of dependencies, meaning mirroring PyPI partially is extremely difficult, and PyPI is huge.

Morgan works differently. It creates a mirror based on a configuration file that defines target environments (using Python's standard Environment Markers specification from PEP 345) and a list of package requirement strings (e.g. "requests>=2.24.0"). It downloads all files relevant to the target environments from PyPI (both source and binary distributions), and recursively resolves and downloads their dependencies, again based on the target environments. It then extracts a single-file server to the mirror directory that works with Python 3.7+, has no outside dependencies, and implements the standard Simple API. This directory can be copied to the restricted network, through whatever security policies are in place, and deployed easily with a simple `python server.py` command.

I should note that Morgan can find dependencies from various metadata sources inside package distributions, including standard METADATA/PKG-INFO/pyproject.toml files, and non-standard files such as setuptools' requires.txt.

There's more information in the Git repository. If this is interesting to you, I'll be happy to receive your feedback.

Thanks!

Comments URL: https://news.ycombinator.com/item?id=32951082

Points: 52

# Comments: 7

94,841 Fly.io makes infrastructure easy for developers

Article URL: https://blog.chiselstrike.com/fly-io-makes-infrastructure-easy-for-us-developers-63081d4d0476

Comments URL: https://news.ycombinator.com/item?id=32951363

Points: 74

# Comments: 24

94,842 A collection of several hundred online tools for OSINT

Article URL: https://github.com/cipher387/osint_stuff_tool_collection

Comments URL: https://news.ycombinator.com/item?id=32951406

Points: 90

# Comments: 8

94,843 Show HN: TwitterToNitter. A bookmarklet that makes reading on Twitter easier

Article URL: https://github.com/no-gravity/TwitterToNitter

Comments URL: https://news.ycombinator.com/item?id=32951457

Points: 34

# Comments: 12

94,844 FreeBSD Cope with WiFi Fuckup

Article URL: https://vermaden.wordpress.com/2022/09/14/freebsd-cope-with-wifi-fuckup/

Comments URL: https://news.ycombinator.com/item?id=32951524

Points: 22

# Comments: 8

94,845 Be Critical or Be Corrupted

Article URL: https://www.cenizal.com/be-critical-or-be-corrupted/

Comments URL: https://news.ycombinator.com/item?id=32953111

Points: 93

# Comments: 56

94,846 LXC and LXD: a different container story

Article URL: https://lwn.net/Articles/907613/

Comments URL: https://news.ycombinator.com/item?id=32953225

Points: 40

# Comments: 3

Pages

You are here