Library for building WebSocket servers and clients in Python

websockets websockets is a library for building WebSocket servers and clients in Python with a focus on correctness and simplicity. Built on top of asyncio, Python’s standard asynchronous I/O framework, it provides an elegant coroutine-based API. Here’s how a client sends and receives messages: #!/usr/bin/env python import asyncio from websockets import connect async def hello(uri): async with connect(uri) as websocket: await websocket.send(“Hello world!”) await websocket.recv() asyncio.run(hello(“ws://localhost:8765”)) And here’s an echo server: #!/usr/bin/env python import asyncio from websockets import serve async […]

Read more

Exemplar-Based Open-Set Panoptic Segmentation Network

EOPSN PyTorch implementation for EOPSN. We propose open-set panoptic segmentation task and propose a new baseline called EOPSN. The code is based on Detectron2 Usage First, install requirements. pip install -r requirements.txt Then, install PyTorch 1.5+ and torchvision 0.6+: conda install -c pytorch pytorch torchvision Finally, you need to install Detectron2. To prevent version conflict, I recommand to install via included detectron2 folders. Regarding installation issue caused from detectron2, please refer to here. cd detectron2 pip install -e ./ Data […]

Read more

A Python library for benchmarking Wi-Fi networks and gather useful metrics

whm aka wifi-heat-mapper whm also known as wifi-heat-mapper is a Python library for benchmarking Wi-Fi networks and gather useful metrics that can be converted into meaningful easy-to-understand heatmaps. The tool aims to assist network engineers, admins and homelabbers in figuring out the performance of their Access Points and Routers. This tool is heavily inspired by python-wifi-survey-heatmap by Jason Antman. Supported Platform Dependencies Required Python version: 3.7 – 3.9 (with Tkinter) iperf3 >= 0.1.11 matplotlib >= 3.4.0 tqdm >= 4.55.0 Pillow […]

Read more

An easy-to-use WebUI for Chia plotting and farming

machinaris An easy-to-use, pure-Docker solution, for both plotting and farming the Chia™ cryptocurrency. Currently in beta! To get started with Machinaris, follow an install guide for your platform: Windows, Linux, Macintosh, Unraid, and others. Plotting View Plotman manages staggered/parallel plotting jobs, also exposed via the Machinaris web interface: Farming View Machinaris installs the latest stable version, so all Farming is done via the official binaries. Alerts Chiadog provides excellent monitoring of the Chia™ log files, ensuring you get notified when […]

Read more

Convenient script for trading with python

quick_trade convenient script for trading with python. used: ├──ta by Darío López Padial (Bukosabino https://github.com/bukosabino/ta) ├──tensorflow (https://github.com/tensorflow/tensorflow) ├──pykalman (https://github.com/pykalman/pykalman) ├──plotly (https://github.com/plotly/plotly.py) ├──scipy (https://github.com/scipy/scipy) ├──pandas (https://github.com/pandas-dev/pandas) ├──numpy (https://github.com/numpy/numpy) └──iexfinance (https://github.com/addisonlynch/iexfinance) Algo-trading system with python. customize your strategy! import quick_trade.trading_sys as qtr from quick_trade import brokers import yfinance as yf import ccxt class My_trader(qtr.Trader): def strategy_sell_and_hold(self): ret = [] for i in self.df[‘Close’].values: ret.append(qtr.utils.SELL) self.returns = ret self.set_credit_leverages(1.0) self.set_open_stop_and_take() return ret a = My_trader(‘MSFT’, df=yf.download(‘MSFT’, start=’2019-01-01′)) a.set_pyplot() a.set_client(brokers.TradingClient(ccxt.binance())) a.strategy_sell_and_hold() a.backtest() find the […]

Read more

A pure python implementation of multicast DNS service discovery

python-zeroconf This is fork of pyzeroconf, Multicast DNS Service Discovery for Python, originally by Paul Scott-Murphy (https://github.com/paulsm/pyzeroconf), modified by William McBrine (https://github.com/wmcbrine/pyzeroconf). Compatible with: Compared to some other Zeroconf/Bonjour/Avahi Python packages, python-zeroconf: isn’t tied to Bonjour or Avahi doesn’t use D-Bus doesn’t force you to use particular event loop or Twisted is pip-installable has PyPI distribution Python compatibility Versioning This project’s versions follow the following pattern: MAJOR.MINOR.PATCH. MAJOR version has been 0 so far MINOR version is incremented on backward […]

Read more

A social networking service scraper in Python

snscrape is a scraper for social networking services (SNS). It scrapes things like user profiles, hashtags, or searches and returns the discovered items, e.g. the relevant posts. The following services are currently supported: Facebook: user profiles, groups, and communities (aka visitor posts) Instagram: user profiles, hashtags, and locations Reddit: users, subreddits, and searches (via Pushshift) Telegram: channels Twitter: users, user profiles, hashtags, searches, threads, and list posts VKontakte: user profiles Weibo (Sina Weibo): user profiles Please note that some features […]

Read more

An automatic reaction network generator for reactive molecular dynamics simulation

ReacNetGenerator ReacNetGenerator: an automatic reaction network generator for reactive molecular dynamic simulations, Phys. Chem. Chem. Phys., 2020, 22 (2): 683–691, doi: 10.1039/C9CP05091D [email protected] (Jinzhe Zeng), [email protected] (Tong Zhu) Features Processing of MD trajectory containing atomic coordinates or bond orders Hidden Markov Model (HMM) based noise filtering Isomers identifying accoarding to SMILES Generation of reaction network for visualization using force-directed algorithm Parallel computing Guide and Tutorial You can install ReacNetGenerator with pip: pip install reacnetgenerator reacnetgenerator -h See the guide to […]

Read more

A simple URL shortener built with Flask

URL Shortener A simple URL shortener built with Flask and MongoDB. Getting Started With Docker Prerequisites Running From your terminal/command prompt run: docker-compose up Then point your browser to http://127.0.0.1:5000/. Without Docker Installing Requirements (Optional) Install virtualenv andvirtualenvwrapper and create a new environment. Run pip install -r requirements.txt. Setting up MongoDB You can either: Install MongoDB locally by going here. or: Configuration The following properties can be configured: Name Purpose Default DEBUG If debug mode is enabled. False ENV Environment […]

Read more

Learning Versatile Neural Architectures by Propagating Network Codes

NCP Mingyu Ding, Yuqi Huo, Haoyu Lu, Linjie Yang, Zhe Wang, Zhiwu Lu, Jingdong Wang, Ping Luo Introduction This work includes:(1) NAS-Bench-MR, a NAS benchmark built on four challenging datasets under practical training settings for learning task-transferable architectures.(2) An efficient predictor-based algorithm Network Coding Propagation (NCP), which back-propagates the gradients of neural predictors to directly update architecture codes along desired gradient directions for various objectives. This framework is implemented and tested with Ubuntu/Mac OS, CUDA 9.0/10.0, Python 3, Pytorch 1.3-1.6, […]

Read more
1 4 5 6 7