Welde Tekle

Welde Tekle

1602507540

A fast, global content delivery network and package manager for ES Modules

ESM

A fast, global content delivery network and package manager for ES Modules. All modules are transformed to ESM by esbuild from npm.

Import from URL

import React from 'https://esm.sh/react'

Specify version

import React from 'https://esm.sh/react@16.13.1'

Submodule

import { renderToString } from 'https://esm.sh/react-dom/server'

Specify ESM target

import React from 'https://esm.sh/react?target=es2020'

Avaiable target: es2015 - es2020, esnext

Development mode

import React from 'https://esm.sh/react?dev'

Bundle mode

import React from 'https://esm.sh/[react,react-dom]/react'
import ReactDom from 'https://esm.sh/[react,react-dom]/react-dom'

or your can define bundle list in the import-map.json (import-maps proposal)

{
    "imports": {
        "https://esm.sh/": "https://esm.sh/[react,react-dom]/",
        ...
    }
}
import React from 'https://esm.sh/react' // actual from 'https://esm.sh/[react,react-dom]/react'

⚠️ The bundling packages in URL are litmited up to 10, to bundle more packages, please use the esm client.

Proxy mode

import P from 'https://esm.sh/${provider}/name@version/path/to/file'

Avaiable provider: deno.land, nest.land, x.nest.land, denopkg.com
Simply proxy all the providers in the import-map.json:

{
    "imports": {
        "https://deno.land/":   "https://esm.sh/deno.land/",
        "https://nest.land/":   "https://esm.sh/nest.land/",
        "https://x.nest.land/": "https://esm.sh/x.nest.land/",
        "https://denopkg.com/": "https://esm.sh/denopkg.com/",
        ...
    }
}

ESM Client in Deno [WIP]

# install esm command
deno install --allow-read --allow-write --allow-net -f -n esm https://deno.land/x/esm/cli.ts

# set cdn
$ esm config cdn cdn.ems.sh.cn

# add some packages
$ esm add react react-dom

# specify version or tag
$ esm add react@16.13.1
$ esm add react@next

# remove some packages
$ esm remove lodash

# update installed packages to latest version
$ esm update

# help message
$ esm -h

X-Typescript-Types

esm.sh will response a custom HTTP header of X-TypeScript-Types when the types(dts) defined, that is useful for deno types check (link).

figure #1

Caveats

Different with Skypack and jspm, esm.sh will bundle all dependencies(exclude peerDependencies) for each package, that means there may be redundant contents transmitted when you are importing multiple packages.
This should be improved when the http/3(quic) is ready. For now the best practice is using the bundle mode.

Self-Hosting

You will need Go 1.14+ to compile the server, and ensure supervisor installed on your host machine.
The server runtime will check the nodejs installation (12+) exists or install the latest LTS version automatically.

$ git clone https://github.com/postui/esm.sh
$ cd esm.sh
$ sh ./scripts/deploy.sh

Download Details:

Author: postui

Source Code: https://github.com/postui/esm.sh

#deno #node #nodejs #javascript

What is GEEK

Buddha Community

A fast, global content delivery network and package manager for ES Modules
Ray  Patel

Ray Patel

1619571780

Top 20 Most Useful Python Modules or Packages

 March 25, 2021  Deepak@321  0 Comments

Welcome to my blog, In this article, we will learn the top 20 most useful python modules or packages and these modules every Python developer should know.

Hello everybody and welcome back so in this article I’m going to be sharing with you 20 Python modules you need to know. Now I’ve split these python modules into four different categories to make little bit easier for us and the categories are:

  1. Web Development
  2. Data Science
  3. Machine Learning
  4. AI and graphical user interfaces.

Near the end of the article, I also share my personal favorite Python module so make sure you stay tuned to see what that is also make sure to share with me in the comments down below your favorite Python module.

#python #packages or libraries #python 20 modules #python 20 most usefull modules #python intersting modules #top 20 python libraries #top 20 python modules #top 20 python packages

Welde Tekle

Welde Tekle

1602507540

A fast, global content delivery network and package manager for ES Modules

ESM

A fast, global content delivery network and package manager for ES Modules. All modules are transformed to ESM by esbuild from npm.

Import from URL

import React from 'https://esm.sh/react'

Specify version

import React from 'https://esm.sh/react@16.13.1'

Submodule

import { renderToString } from 'https://esm.sh/react-dom/server'

Specify ESM target

import React from 'https://esm.sh/react?target=es2020'

Avaiable target: es2015 - es2020, esnext

Development mode

import React from 'https://esm.sh/react?dev'

Bundle mode

import React from 'https://esm.sh/[react,react-dom]/react'
import ReactDom from 'https://esm.sh/[react,react-dom]/react-dom'

or your can define bundle list in the import-map.json (import-maps proposal)

{
    "imports": {
        "https://esm.sh/": "https://esm.sh/[react,react-dom]/",
        ...
    }
}
import React from 'https://esm.sh/react' // actual from 'https://esm.sh/[react,react-dom]/react'

⚠️ The bundling packages in URL are litmited up to 10, to bundle more packages, please use the esm client.

Proxy mode

import P from 'https://esm.sh/${provider}/name@version/path/to/file'

Avaiable provider: deno.land, nest.land, x.nest.land, denopkg.com
Simply proxy all the providers in the import-map.json:

{
    "imports": {
        "https://deno.land/":   "https://esm.sh/deno.land/",
        "https://nest.land/":   "https://esm.sh/nest.land/",
        "https://x.nest.land/": "https://esm.sh/x.nest.land/",
        "https://denopkg.com/": "https://esm.sh/denopkg.com/",
        ...
    }
}

ESM Client in Deno [WIP]

# install esm command
deno install --allow-read --allow-write --allow-net -f -n esm https://deno.land/x/esm/cli.ts

# set cdn
$ esm config cdn cdn.ems.sh.cn

# add some packages
$ esm add react react-dom

# specify version or tag
$ esm add react@16.13.1
$ esm add react@next

# remove some packages
$ esm remove lodash

# update installed packages to latest version
$ esm update

# help message
$ esm -h

X-Typescript-Types

esm.sh will response a custom HTTP header of X-TypeScript-Types when the types(dts) defined, that is useful for deno types check (link).

figure #1

Caveats

Different with Skypack and jspm, esm.sh will bundle all dependencies(exclude peerDependencies) for each package, that means there may be redundant contents transmitted when you are importing multiple packages.
This should be improved when the http/3(quic) is ready. For now the best practice is using the bundle mode.

Self-Hosting

You will need Go 1.14+ to compile the server, and ensure supervisor installed on your host machine.
The server runtime will check the nodejs installation (12+) exists or install the latest LTS version automatically.

$ git clone https://github.com/postui/esm.sh
$ cd esm.sh
$ sh ./scripts/deploy.sh

Download Details:

Author: postui

Source Code: https://github.com/postui/esm.sh

#deno #node #nodejs #javascript

How to Install Pyenv on Ubuntu 18.04

What is Pyenv?
Pyenv is a fantastic tool for installing and managing multiple Python versions. It enables a developer to quickly gain access to newer versions of Python and keeps the system clean and free of unnecessary package bloat. It also offers the ability to quickly switch from one version of Python to another, as well as specify the version of Python a given project uses and can automatically switch to that version. This tutorial covers how to install pyenv on Ubuntu 18.04.

#tutorials #apt #debian #environment #git #github #linux #package #package management #package manager #personal package archive #ppa #pyenv #python #python 3 #python support #python-pip #repository #smb #software #source install #ubuntu #ubuntu 18.04 #venv #virtualenv #web application development

Origin Scale

Origin Scale

1616572311

Originscale Order Management System

Originscale order management software helps to manage all your orders across channels in a single place. Originscale collects orders across multiple channels in real-time - online, offline, D2C, B2B, and more. View all your orders in one single window and process them with a simple click.

#order management system #ordering management system #order management software #free order management software #purchase order management software #best order management software

Tech Avidus

Tech Avidus

1604379605

Digital Assets Management Software Solution | AI-based Assets Management System

A Digital Asset Management System makes it easier to store, manage, and share all of your digital assets on cloud-based storage.

We help you to build Digital Asset Management (DAM) systems with your precise business requirements, whether you want one for maintaining management, production management, brand management systems, or implementing with your sales department with the digital assets it needs.

To learn more about how the Digital Asset Management system will help your business, email us at hello@techavidus.com

#digital assets management #assets management solution #digital asset management system #production management #brand management