semvec/pypi-packages huggingface dataset:
VNE_SIM 2.8
virtual network embedding

title

    virtual network embdding

install method

    pip install vne-sim

=============================
run method
=============================
init code

    from VNE_SIM import *

    import VNE_SIM.algorithm as alg

    SNpath='topology\\sn\\sub100-570.txt'

    vnrpath='topology\\newr-2000-0-20-0-25'

    vnrnumber=2000

    timeframe=2000

    mysimulation=simulation(5,1000,SNpath,vnrpath,vnrnumber)

define VNE method

    def my_vne_alg(vnr,sn):

         v2sindex=[[v1,s1],[v2,s2],...] //nodes maping scheme

         ve2seindex=[[s1,s2,...],[s1,s2,...],.....]  //edges maping scheme

         return True|False,v2sindex,ve2seindex

call your algorithm

    mysimulation.init(timeframe)

    mysimulation.simulation_run(EA_VNR.EA_VNR_alg,EA_VNR.EA_VNR_ALG_NAME)

draw result figure

    mysimulation.draw()



#####################################

zzu@1402
basicpy2captcha 1.0.2
A basic python 2captcha.com module
Requires Python: >=3.6

<h1 align="center">Welcome to basicpy2captcha python module��</h1>
<p>
  <img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
</p>

> A basic python 2captcha.com module

## Install

```sh
pip install basicpy2captcha
```

## Usage

```py
import base64
import basicpy2captcha


py2c = captcha.py2c("YOUR_2CAPTCHA_API_KEY")

#Text Image:
with open("captcha.png", "rb") as f:
    img_b64 = base64.b64encode(f.read())

solved = py2c.solveCaptcha(img_b64)
print(solved)


#ReCaptcha:
key = py2c.get_sitekey(driver) #driver - selenium webbrowser object
token = solveReCaptcha(key,driver.current_url)
if token:
  driver.execute_script(
      "document.getElementById('g-recaptcha-response').innerHTML='{}';".format(token)
  )


#getBalance:
balance = py2c.getBalance()
print(balance)

#report Correct resolve:
py2c.reportCorrect()

#report Incorrect resolve:
py2c.reportIncorrect()
```

## Show your support

Give a ⭐️ if this project helped you!
covidtracking 0.1
Simple API to get data from https://covidtracking.com

# Covid Tracking API

Simple API to get data from https://covidtracking.com

```python
>>> import sys
>>> sys.path.append('src')
>>> from covidtracking import CovidTracking
>>> c = CovidTracking()
>>> x = c.states() # Get all states
>>> ga = c.states('GA') # Get only Georgia data
>>> twoStates = c.states('GA', 'SC') # You can pass multiple filters
```

The data is cached, since it's not updated constantly. To refresh, call `clear()` first.