npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vidtestp2p

v1.0.4

Published

Tests de Python y sitios web P2P

Downloads

12

Readme

Algunos tests para Python y sitios web P2P

Tests de Python:

Ejemplo 1:

Código muestra en Python para hacer la división de flotantes, tomando los argumentos de ingreso al programa.

import sys

if len( sys.argv ) != 3 : print "Args: m b" sys.exit(1)

m = float(sys.argv[1]) b = float(sys.argv[2])

x = -b/m print x

Ejemplo 2: Imprimir posiciones en una lista

print p[0],p[1],p[2] lista = [0,1,2] posicion = [0,1,2] for p0 in lista: for p1 in lista: for p2 in lista: posicion[0] = p0 posicion[1] = p1 posicion[2] = p2 imprime( posicion )

Otros ejemplos en sitios web P2P

Conversor YouTube en Python

Recursos en donde se puede probar el convertidor de Python

Hay sitios que contienenRecursos de streaming con los cuáles puedes realizar las pruebas de tus videos vía Streaming online alternativo.

WebTorrent es un cliente de torrents de transmisión para node.js y el navegador. Está escrito completamente en JavaScript, el lenguaje de la web, por lo que el mismo código funciona en ambos tiempos de ejecución.

En node.js, este módulo es un cliente torrent simple, que usa TCP y UDP para hablar con otros clientes torrent.

En el navegador, WebTorrent utiliza WebRTC (canales de datos) para el transporte de igual a igual, como el cliente torrent. Se puede usar sin complementos, extensiones o instalaciones del navegador. Es solo JavaScript ™. Nota: WebTorrent no admite pares UDP / TCP en el navegador.

Simplemente incluya el script webtorrent.min.js en su página para comenzar a buscar archivos a través de WebRTC usando el protocolo BitTorrent, o requiera ('webtorrent') con browserify. Vea las aplicaciones de demostración y los ejemplos de código a continuación, También funciona con el Streaming en demanda

Para hacer que BitTorrent funcione sobre WebRTC (que es el único transporte P2P que funciona en la web) hicimos algunos cambios de protocolo. Por lo tanto, un cliente WebTorrent basado en navegador o "web peer" solo puede conectarse a otros clientes que admitan WebTorrent / WebRTC, así como los audiovisuales

Para sembrar archivos a pares web, utilice un cliente que admita WebTorrent, p. Ej. WebTorrent Desktop, un cliente de escritorio con una interfaz de usuario familiar que puede conectarse a pares web, webtorrent-hybrid, un programa de línea de comandos. Los clientes de torrent establecidos como Vuze ya han agregado compatibilidad con WebTorrent para que puedan conectarse tanto a pares normales como web. Esperamos que otros clientes lo sigan.