Saravanan666/pypi-org huggingface dataset:
Package: pyetw
Python logging via Event Tracing for Windows (ETW)PyEtwis a Python package that allows you to use Pythons standard logging facility
withEvent Tracing for Windows (ETW).PyEtwimplementslogging.Handlerand overloadsemit()to handle thelogging.LogRecordobjects.
Thelogging.LogRecordobject is then converted to a Windows event record,
and written via the APIEventWriteTransferas an ETW TraceLogging event.Using ETW for Python logging allows you to leverage the many tools available
for the Windows ETW ecosystem, such asMGTEK TraceView Plus.FeaturesLog Pythonlogging.LogRecordviaEvent Tracing for Windows.Includes standard metadata in ETW records, such as ETW provider, time-stamp, process and thread ID, and log-level.Includes Python specificlogging.LogRecordmetadata in ETW records, such as Python module, function name, filename and line-number, and log message.Automatic provider ID (GUID) generation via provider name hash.Native WIN32 implementation with no dependecies.Logging ETW events via PythonTo log ETW events via the Pythonloggingmodule you can write:importloggingimportpyetwlogging.basicConfig(level=logging.DEBUG,handlers=(pyetw.LoggerHandler(),))logging.info("Hello from PyEtw!")Note the parameterhandlerstobasicConfig(). By specifing thepyetw.LoggerHandler(),
the log records are written as ETW TraceLogging events.To record and view the traces, you can use any ETW tracing tool.ETW Provider GUID hashPyEtwuses the standard TraceLogging hashing algorithm to
derive the provider GUID from the trace provider name,
which is set to the Python logger name by default.If your tracing tool is not able to generate the provider GUID from the provider name,
you can use theguidproperty of theEventProviderclass to obtain the GUID.
For instance, to get the provider GUID for therootlogger,
enter the following command:python -c "import pyetw;print(pyetw.EventProvider('root').guid)"Recording ETW TracesHere is an example that records the events of therootlogger to a trace file
usingTracelog,
which is included in theWindows SDKC:\Temp> tracelog -start mytrace -guid *rootNote that the specified GUID must match the name of the Python logger.
Prefix the logger name with astarto have tracelog create a GUID hash of the logger name.After you are done running the Python example from above, runC:\Temp> tracelog -stop mytraceWhen the trace is stopped, you will have a fileLogFile.Etlthat contains a single trace record.To view the recorded trace, you can writeC:\Temp> tracefmt -displayonly LogFile.EtlInstalling PyEtwYou can install thePyEtw packagefrom PyPI using pip:pip install pyetwIn order to use thePyEtwpackage, you needPython 3.6or higher.The source code for thePyEtwpackage can be found at GitHub athttps://github.com/mgtek/pyetw.DocumentationYou can find thePyEtwuser's guide athttps://pyetw.readthedocs.io/.ExamplesYou can find Python examples usingPyEtwin the pyetw GitHub repository athttps://github.com/mgtek/pyetw/tree/main/examples.Getting helpFor issues withPyEtw, please visit thepyetw issue tracker.
Package: pyeucountrycodes
pyeucountrycodesA list of EU country codes following the ISO 3166-1 / Alpha-2 code.usagepipinstallpyeucountrycodes

>>>fromeu_country_codesimportCOUNTRY_CODES
>>>"FR"inCOUNTRY_CODES
TruescopeIt is intended to keep this package very simple.If you need to access the names of the countries, maybe even in different languages, please refer to the excellentpycountry:https://pypi.org/project/pycountry/word of cautionPlease note, that although Great Britain left the EU,
e.g. Northern Ireland is still treated - partly - as if it would still belong to the EU.contribution, feature requests and bug reportsPlease usehttps://github.com/jugmac00/pyeucountrycodesdevelopment and run tests$ python3 -m venv .venv
$ . .venv/bin/activate

$ pip install -U pip
$ pip install flit pytest

$ git clone git@github.com:jugmac00/pyeucountrycodes.git
$ cd pyeucountrycodes/
$ flit install

$ pytest .release history1.3.0 (20.12.2022)Add support for Python 3.11.Remove support for Python 3.6.1.2.0 (07.11.2021)Add support for Python 3.10.1.1.0 (06.01.2021)Update development documentation.Do not use Travis CI any more.Add badge for supported Python versions.1.0.1 (04.01.2021)Update readme for release.1.0.0 (04.01.2021)Test with GitHub actions.Add support for Python 3.7, 3.8 and 3.9.Drop support for Python 2.Update usage example.Remove GB from the list of EU countries.0.7.0 (15.01.2019)Initial release.sourcesList of countries:https://en.wikipedia.org/wiki/Member_state_of_the_European_Union(visited on 04.01.2021)Iso codes:https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes(visited on 15.01.2019)
Package: pyeugene
pyEugene 📈Eugene Investment & Securities Champion Open Api Python WrapperFree software:MITDemoPrerequisites 👓Python 3.9.*32 Bit Development environmentEugene Web Account (need Eugene securities account)Introduction 💻pyEugene is an unofficial python wrapper for easy use of the Champion Open API provided by Eugene Investment & Securities.Even if you are not familiar with the functions below, you can use all of them.The API structure of OCX provided by Eugene Investment & SecuritiesOperating Structure of the Version Processing Program Provided by Eugene Investment & SecuritiesUsedynamicCallfunction for function invocation in con>한국어 소개 💻pyEugene은 유진투자증권에서 제공하는 Champion Open API를 쉽게 사용하기 위한 비공식 python wrapper입니다.아래의 기능들을 잘 모르더라도 충분히 모든 기능을 사용할 수 있습니다.유진투자증권에서 제공하는 OCX의 API 구조유진투자증권에서 제공하는 버전처리 프로그램의 작동 구조컨트롤에서 함수 호출을 위한dynamicCall함수 사용Getting Started 🚀To begin usingpyEugene, start by installing anaconda(or you can use miniconda):Download anacondaDownload minicondaWhen you're done installing the anaconda, run the anaconda prompt and set it to a 32-bit development environmentsetCONDA_FORCE_32BIT=1If you replace the anaconda with 32-bit, create a 32-bit virtual environment
(You should use Python 3.9 version)condacreate--namepy39_32python=3.9When you're done installing, activate virtual environment and use the pip to installpyEugenecondaactivatepy39_32
pipinstallpyeugeneOnce you've installedpyEugene, you can start using it right away.
For example, to get real-time stock price usingpyEugene, enter the following code:importsysimportosfrompprintimportpprintfromdotenvimportload_dotenvfrompyeugene.eugene_managerimportEugeneManagerif__name__=="__main__":load_dotenv()em=EugeneManager(os.getenv("USER_ID"),os.getenv("USER_PW"),os.getenv("CERT_PW"))real_cmd={'realId':'21','realKey':'005930','output':["SCODE","SNAME","CMARKETGUBUN","LTIME","CPCHECK","LDIFF","LCPRICE"]}em.put_real(real_cmd)foriinrange(10):data=em.get_real()pprint(data)sys.exit()한국어 사용 가이드 🚀pyEugene을 사용하기 위해서는 아나콘다를 설치해야 합니다(미니콘다를 설치해 사용할 수도 있습니다)아나콘다 다운로드미니콘다 다운로드아나콘다 다운로드가 완료 되었으면 아나콘다 프롬프트를 실행해 32bit 개발환경으로 설정해줘야 합니다setCONDA_FORCE_32BIT=132bit로 설정이 완료 되었으면 32bit 가상 개발 환경을 만들어줍니다
(파이썬 3.9 버전을 사용해야 합니다)condacreate--namepy39_32python=3.9설치가 모두 끝나면 가상환경을 실행하고 pip를 통해pyEugene을 설치해줍니다condaactivatepy39_32
pipinstallpyeugene다음부터는pyEugene을 설치하지 않고도 기능을 사용할 수 있습니다.
간단한 예시로pyEugene을 이용해 실시간 시세를 받아오려면 아래 코드를 사용하면 됩니다importsysimportosfrompprintimportpprintfromdotenvimportload_dotenvfrompyeugene.eugene_managerimportEugeneManagerif__name__=="__main__":load_dotenv()em=EugeneManager(os.getenv("USER_ID"),os.getenv("USER_PW"),os.getenv("CERT_PW"))real_cmd={'realId':'21','realKey':'005930','output':["SCODE","SNAME","CMARKETGUBUN","LTIME","CPCHECK","LDIFF","LCPRICE"]}em.put_real(real_cmd)foriinrange(10):data=em.get_real()pprint(data)sys.exit()Contributions 💬Feel free to contribute topyEugenefixing bugs.
Package: pyeumonia
PyeumoniaThis program is in beta and open source, if there is some error(s) in your code, please submit an issue toGithub.A covid-19 api to get the latest data fromDXY.Official Website:Official WebsiteChinese user can seeREADME-zh_CN.md.国内用户请访问README-zh_CN.md.How to installinstall pypi package:pipinstallpyeumoniaConfigurationsIf you have already installed pyeumonia, and it's newer than0.1.0a0, it will automatically check for updates, you can also configure it by following the steps below to let it automatically update.frompyeumoniaimportCovid19covid=Covid19(check_upgradable=True,auto_update=True)If you don't want to check updates automatically, you can configure like this.Warning:Don't use it on Jupyter Notebook, it may cause error!frompyeumoniaimportCovid19covid=Covid19(check_upgradable=False)If you want to upgrade it manually, you can usepip install --upgrade pyeumonia.UsageGet the latest data from the world:frompyeumoniaimportCovid19covid=Covid19(language='en_US')data=covid.world_covid_data()Get timeline data from your country:frompyeumoniaimportCovid19covid=Covid19(language='en_US')# Get covid-19 data from your country in the last 30 daysdata=covid.country_covid_data(country='auto',show_timeline=30)Warning:If you are using a proxy, you need to turn off the proxy in your device, or the result will be wrong.Open Source licenseThe project is open source and licensed under theGNU GPL v3 license. If you want to use it, please obey these license:You can use the project for your python projects.You can modify and redistribute the project, but you must use GPLv3 license and keep the author's name in your source code.For any purpose, this program is forbidden to use for commercial use, including but not limited to enterprise website, business application, business promotion.For any purpose, as long as your program uses the pyeumonia package, no ads are allowed in the program, even if it is open source.
Package: pyeupi
Client API for EUPIClient API to query the Phishing Initiative service.InstallationFrom the repository:python setup.py installOr via pip:pip install pyeupiSearch queriesfrom pyeupi import PyEUPI
    p = PyEUPI('<Api key>')
    p.search(content='circl')
    p.search_url(tld='lu')
    p.search_submissions()
Package: pyeurlex
pyeurlex packageThis is a python module to create SPARQL queries for the EU Cellar repository, run them and subsequently download their data. Notably, it directly supports all resource types. Some parts like the SPARQL queries are based on the R-basedeurlexpackage by Michal Ovadek, but then I wanted one for python and was not satisfied with existing python packages.Status|Coverage GraphUsageImport and instantiate the moduelfrom eurlex import Eurlex
eur = Eurlex()Then you can construct you query. (or alternatively you can use your own or one constructed via the wizardhttps://op.europa.eu/en/advanced-sparql-query-editorq = eur.make_query(resource_type = "caselaw", order = True, limit = 10)
print(q)Finally, you can run this query.d = eur.query_eurlex(q)  # where q is a query generated in a previous step or a string defined by you
print(d)This will return a pandas data frame of the results. Its columns depend on the the fields that you included. At the moment, not all fields are named properly in the dataframe and you will have to set their name manually if desired.Once you pick a single url or identifier from the df, you can download a notice or data based on that indentifier. To download the notices as xml, usedownload_xml()as below.x = eur.download_xml("32014R0001", notice="tree") # without the file parameter to specify the filename, the celex number will be used.
print(x)To get data associated with an identifier, useget_data(). This will return the data as a string,d = eur.get_data("http://publications.europa.eu/resource/celex/32016R0679", type="text")
print(d)Why another package/module?While there was already the R packages by Michal Ovadek, I wanted a python implementation.
There is alsohttps://github.com/seljaseppala/eu_corpus_compilerbut that also only does regulatory/legislative documents. Additionally, there ishttps://pypi.org/project/eurlex/, but it for example does not have a way to generate SPARQL queries and is also very focused on legislation. In addition, while internally it uses SPARQL and cellar as well, its documentation is focused on accessing and processing documents via CELEX number, which is not really helpful to me. Another one ishttps://github.com/Lexparency/eurlex2lexparencywhich also seems to focus on legislative documents and
Package: pyeuromil
A Python library to check and analyse Euromillions results(Last result: 2021/12/03)Usageimportpyeuromilasemfromdatetimeimportdate# List of draw dates of September 2018forresultinem.euro_draw_dates(date(2018,9,1),date(2018,9,30)):print(result)2018-09-28
2018-09-25
2018-09-21
2018-09-18
2018-09-14
2018-09-11
2018-09-07
2018-09-04importpyeuromilasemfromdatetimeimportdate# first week of october 2018 resultsresult_list=em.euro_results(date(2018,10,1),date(2018,10,7))forresultinresult_list:print(result)Result(date=datetime.date(2018, 10, 5), numbers=[8, 16, 24, 26, 35], stars=[3, 11])
Result(date=datetime.date(2018, 10, 2), numbers=[7, 17, 29, 37, 45], stars=[3, 11])frompyeuromilimportPlays,Gridfromdatetimeimportdateimportpprintpp=pprint.PrettyPrinter(indent=2)plays=Plays()game=Grid([15,18,32,35,40],[1,7],star_plus=True)plays.append(game,start=date(2018,9,28),end=date(2018,10,30),tuesday=True,friday=True)forplayinplays:pp.pprint(Plays.play_summary(play))[ { 'date': datetime.date(2018, 10, 23),
    'numbers': [32],
    'ranking': 0,
    'ranking_star_plus': 0,
    'stars': []},
  { 'date': datetime.date(2018, 10, 19),
    'numbers': [],
    'ranking': 0,
    'ranking_star_plus': 0,
    'stars': []},
  { 'date': datetime.date(2018, 10, 16),
    'numbers': [15, 40],
    'ranking': 12,
    'ranking_star_plus': 9,
    'stars': [1]},
  { 'date': datetime.date(2018, 10, 12),
    'numbers': [],
    'ranking': 0,
    'ranking_star_plus': 0,
    'stars': []},
  { 'date': datetime.date(2018, 10, 9),
    'numbers': [],
    'ranking': 0,
    'ranking_star_plus': 0,
    'stars': []},
  { 'date': datetime.date(2018, 10, 5),
    'numbers': [35],
    'ranking': 0,
    'ranking_star_plus': 0,
    'stars': []},
  { 'date': datetime.date(2018, 10, 2),
    'numbers': [],
    'ranking': 0,
    'ranking_star_plus': 0,
    'stars': []},
  { 'date': datetime.date(2018, 9, 28),
    'numbers': [],
    'ranking': 0,
    'ranking_star_plus': 0,
    'stars': []}]InstallationInstall and update usingpip:pip install pyeuromilDocumentationDocumentation is available atReadTheDocsCompatibilitypython >= 3.6LicenceMIT LicenseAuthorspyeuromilwas written byAcpirience.
Package: pyeuropeana
Python interface for Europeana's APIsThis package is a Python client library forseveral APIsfromEuropeana:Search APIRecord APIEntity APIIIIF APIWith this tool you can access in python the data and metadata from our collections. Learn more about the Europeana Data ModelhereInstallationUsing pippip install pyeuropeanaFrom source(.venv) $ git clone https://github.com/europeana/rd-europeana-python-api.git
(.venv) $ cd rd-europeana-python-api
(.venv) $ pip install .AuthenticationGet your API keyhereSetEUROPEANA_API_KEYas an environment variable runningexport EUROPEANA_API_KEY=yourapikeyin the terminal.If running in Google Colab useos.environ['EUROPEANA_API_KEY'] = 'yourapikey'UsageSearch APIimportpyeuropeana.apisasapisimportpyeuropeana.utilsasutils# use this function to search our collectionsresult=apis.search(query='*',qf='(skos_concept:"http://data.europeana.eu/concept/base/48" AND TYPE:IMAGE)',reusability='open AND permission',media=True,thumbnail=True,landingpage=True,colourpalette='#0000FF',theme='photography',sort='europeana_id',profile='rich',rows=1000,)# this gives you full response metadata along with cultural heritage object metadata# use this utility function to transform a subset of the cultural heritage object metadata# into a readable Pandas DataFramedataframe=utils.search2df(result)Record APIimportpyeuropeana.apisasapis# gets the metadata from an object using its europeana iddata=apis.record('/79/resource_document_museumboerhaave_V35167')Entity APIimportpyeuropeana.apisasapis# suggests an entity based on a text querydata=apis.entity.suggest(text='leonardo',TYPE='agent',language='es')# retrieves the data from an entity using the identifierdata=apis.entity.retrieve(TYPE='agent',IDENTIFIER=3)# resolves entities from an input URIdata=apis.entity.resolve('http://dbpedia.org/resource/Leonardo_da_Vinci')IIIF APIimportpyeuropeana.apisasapis# The IIIF API is mostly used to access newspapers collections at Europeana# returns a minimal set of metadata for an objectdata=apis.iiif.manifest('/9200356/BibliographicResource_3000118390149')# returns text and annotations for a given page of an objectdata=apis.iiif.annopage(RECORD_ID='/9200356/BibliographicResource_3000118390149',PAGE_ID=1)# returns the transciption of a single page of a newspaperdata=apis.iiif.fulltext(RECORD_ID='/9200396/BibliographicResource_3000118435063',FULLTEXT_ID='8ebb67ccf9f8a1dcc2ea119c60954111')DocumentationThe documentation is available atRead the DocsYou can alsobuild the docs
Package: py_ev
py_ev is about to be a light-weight poker open-source library written
and tested in Python to help all programmers around the world build
their poker connected applications.Installationpipinstallpy_evRequirementsPython 3.xCurrent functionalitiesfrompy_evimportEvaluatorev=Evaluator()Evaluatorevaluate()print(ev.evaluate([(3,3),(3,2)],[(2,2),(11,3),(3,4),(10,2),(7,3)]))# prints 4000420equity()print(ev.equity(100000,[(2,3),(3,2)],[(3,3),(4,2)]))# 100000 hands evaluated# prints (20.28, 30.8, 48.93)# Function returns a tuple: (cards_1_won, cards_2_won, draw)Future developmentThose are just examples of possible directions. Concrete decisions will
be made when some contributors join the project.Adding the most popular poker variants: PLO, 6plus.Hand history and tournaments summaries parsers.Data extraction from poker operators (hhs-mining, traffic-mining,
etc).Sitting scripts.Feel free to open a feature request.How to join this project?It’s as easy as clicking a “star” icon on the top. It really helps!We are looking for contributors. If you feel like joining the ranks,
readTHISarticle.Every help is appreciated. No matter what your programming skills are.
You can: - improve README - write new testcases - document code with
Docstrings -and of course write a new feature!Feel free to contact me privately onjkbielan@gmail.com
Package: pyev3
pyev3pyev3can be used to interact with theLEGO Mindstorms EV3.Send direct commands to the EVR from your PC (local host) using a USB or WiFi
connection.pyev3is an alternative topybricks,
which requires booting the EV3 brick from an SD card, and where micropython
programs run in the EV3 memory. Withpyev3you can run the EV3 as is. Just
connect it to a USB port, or create a WiFi connection, and you're good to go!ClassesInteract with each one of the EV3 devices through simple methods and properties,
implemented in the following classes:LegoEV3MotorTouchColorUltrasonicInfraredGyroInstallpy -m pip install pyev3DocumentationComprehensive documentation forpyev3is availablehere.Example CodeStart and stop a motor using the touch sensor. The motor speed is proportional
to ambient light intensity.""" Example Code """# Importing modulesimporttimefrompyev3.brickimportLegoEV3frompyev3.devicesimportMotor,Touch,Color# Creating LEGO EV3 objectsev3=LegoEV3(commtype='usb')motor=Motor(ev3,port='A')touch=Touch(ev3,portnum=1,inputmode='bump')color=Color(ev3,portnum=2,inputmode='ambient')# Initializing systemmotor.outputmode='speed'motor.output=0motor.start()touch.reset_count()# Changing EV3 status lightev3.set_statuslight(mode='pulsing')# Running for 30 secondsprint('Running ...')tcurr=0tstart=time.perf_counter()whiletcurr<=30:# Getting current time (s)tcurr=time.perf_counter()-tstart# Checking for even/odd number of 'bumps'if(touch.output%2)==0:# Assigning ZERO speed outputmotor.output=0else:# Assigning output proportional to ambient lightmotor.output=color.output# Stopping motor and closing EV3 connectionmotor.stop()ev3.set_statuslight(mode='solid')ev3.close()print('Done.')Notes:pyev3was developed and tested on MS Windows 10. It usescython-hidapifor the USB communication interface.It's very likely it will also work on Unix and macOS.
Package: pyevacalor
pyevacalorpyevacalor provides controlling Eva Calor heating devices connected via the IOT Agua platform of Micronova.Example usagefrom pyevacalor import evacalor

# 1c3be3cd-360c-4c9f-af15-1f79e9ccbc2a = random UUID
# You can generate one here: https://www.uuidgenerator.net/version4
connection = evacalor("john.smith@gmail.com", "mysecretpassword", "1c3be3cd-360c-4c9f-af15-1f79e9ccbc2a")

# Print the current air temperature for each device
for device in connection.devices:
  print(device.name + ": " + str(device.air_temperature))
Package: pyEvalData
Welcome to pyEvalDataThis is a Python module to read and evaluate experimental data. It can handle
raw data from different sources such asspec,hdf5,NeXusfiles which are common data formats at
synchrotrons, FELs, as well as in a growing number of laboratories. The
evaluation provides common functionalities such as binning, error calculation,
and advanced data manipulation via algebraic expressions as well as pre- and
post-data-filters. Furthermore, advanced wrapper functions allow for plotting
and fitting sequences of one or multiple scans in dependence of an external
parameter.A minimal code example would look like this:importpyEvalDataasped# define your data sourcespec=ped.io.Spec(file_name='data.spec')# initialize the evaluationev=ped.Evaluation(spec)# define the x- and y-dataev.xcol='motor1'ev.clist=['ct1','ct2','ct1/ct2']# create a plot for scans 1-3ev.plot_scans([1,2,3])Please follow theuser guideandexamplesfor
your first steps withpyEvalData.Featuresreading of several pre-defined raw data formatsspechdf5NeXususer-defined text filescamera images (Dectris Pilatus, Princeton MTE, Greateyes, ...)composite sourceseasy implementation of new raw-data formats using aninterface classcommon methods for plotting and fitting of experimental data, including:data binningerror calculationdata manipulation via algebraic expressionscommon data pre- and post-filtersInstallationYou can either install directly frompypi.orgusing the command$ pip install pyEvalDataor if you want to work on the latest develop release you can clonepyEvalDatafrom the main git repository:$ git clone https://github.com/dschick/pyEvalData.git pyEvalDataTo work in editable mode (source is only linked
but not copied to the python site-packages), just do:$ pip install -e ./pyEvalDataOr to do a normal install with$ pip install ./pyEvalDataOptionally, you can also let pip install directly from the repository:$ pip install git+https://github.com/dschick/pyEvalData.gitYou can have the following optional installations to enable unit tests, as well
as building the documentation:$ pip install pyEvalData[testing]
$ pip install pyEvalData[documentation]Contribute & SupportIf you are having issues please let us know via theissue tracker.You can contribute to the project via pull-requests following theGitHub flow concept.LicenseThe project is licensed under the MIT license.
Package: pyevaljs3
一个依赖node.js来执行js代码的库环境注意需要安装好node.js, 并添加好环境变量!!!安装pip install pyevaljs3快速开始importpyevaljs3js_code="function f(args) {console.log(args); return 'ok';} return f('args')"result=pyevaljs3.eval_(js_code)print(result)# 'ok'js_code="function f(arg1, arg2) {console.log(arg1, arg2); return arg1 + arg2;}"ctx=pyevaljs3.compile_(js_code)result=ctx.call('f','a','b')print(result)# 'ab'API参考pyevaljs3.JSEvaldef compile(self, source: str = None, suffix: str = None):编译javascript源代码:param source: 源代码字符串或要读取的文件路径:param suffix: js脚本文件名后缀(指定以什么模式执行), 默认是".js", 可选的值还有".cjs", ".mjs"等:return: Contextdef eval(self, code: str = None, ignore_output=False):执行javascript代码, 返回其结果pyevaljs3.Contextdef call(self, func, *args):调用指定的函数, 返回其结果:param func: 函数名:param args: 函数的参数列表pyevaljs3的模块级函数def compile_(source: str = None, mode: str = None) -> Context:编译js源代码:param source: 源代码字符串或要读取的文件路径:param mode: 执行模式, 默认以.js的行为去执行:return: Contextdef eval_(code: str = None, ignore_output=False):执行javascript代码, 返回其结果(对于长字符串的情况，请使用compile):param code: js代码:param ignore_output: 是否忽略执行过程中的输出, 若为True则仅返回其结果, 默认不忽略(False)欢迎各位使用此库, 有问题请提交issue