Saravanan666/pypi-org huggingface dataset:
Package: romeways_kafka_queue
Romeways kafkaThis is an extra package for romeways for more details access theromewaysGithub page.This package useaiokafkato connect kafka server.ConfigsQueuefromdataclassesimportdataclassfromromewaysimportGenericQueueConfig@dataclass(slots=True,frozen=True)classKafkaQueueConfig(GenericQueueConfig):"""topic: str See aiokafka.AIOKafkaConsumer doc-> https://aiokafka.readthedocs.io/en/stable/api.html#aiokafka.AIOKafkaConsumergroup_id: str See aiokafka.AIOKafkaConsumer doc.-> https://aiokafka.readthedocs.io/en/stable/api.html#aiokafka.AIOKafkaConsumer"""topic:strgroup_id:strconnector_name:strfrequency:floatmax_chunk_size:intsequential:boolConnectorfromdataclassesimportdataclassfromromewaysimportGenericConnectorConfig@dataclass(slots=True,frozen=True)classKafkaConnectorConfig(GenericConnectorConfig):"""bootstrap_server: str | list[str] See aiokafka.AIOKafkaConsumer doc-> https://aiokafka.readthedocs.io/en/stable/api.html#aiokafka.AIOKafkaConsumerclient_id: str See aiokafka.AIOKafkaConsumer doc.-> https://aiokafka.readthedocs.io/en/stable/api.html#aiokafka.AIOKafkaConsumer"""bootstrap_server:strclient_id:strUse caseimportasyncioimportromeways# Create a queue configconfig_q=romeways.KafkaQueueConfig(topic="net_topic",group_id="my-project",connector_name="kafka-dev1",frequency=1,max_chunk_size=10,sequential=False,)# Register a controller/consumer for the queue name@romeways.queue_consumer(queue_name="queue.payment.done",config=config_q)asyncdefcontroller(message:romeways.Message):print(message)config_p=romeways.KafkaConnectorConfig(connector_name="kafka-dev1",bootstrap_server="localhost:9094",client_id="1")# Register a connectorromeways.connector_register(connector=romeways.KafkaQueueConnector,config=config_p,spawn_process=True)asyncio.run(romeways.start())
Package: romeways-memory-queue
Romeways memory queueThis is an extra package for romeways for more details access theromewaysGithub page.ConfigsQueueThe only difference between theromeways.GenericQueueConfigandromeways_memory_queue.MemoryQueueConfigis themultiprocessing.Queueinstance.fromdataclassesimportdataclassfrommultiprocessingimportQueuefromromewaysimportGenericQueueConfig@dataclass(slots=True,frozen=True)classMemoryQueueConfig(GenericQueueConfig):connector_name:strfrequency:floatmax_chunk_size:intsequential:boolqueue:QueueConnectorfromdataclassesimportdataclassfromromewaysimportGenericConnectorConfig@dataclass(slots=True,frozen=True)classMemoryConnectorConfig(GenericConnectorConfig):connector_name:strUse casefrommultiprocessingimportQueueimportasyncioimportromeways# Config the connectorqueue=Queue()# Create a queue configconfig_q=romeways.MemoryQueueConfig(connector_name="memory-dev1",frequency=1,max_chunk_size=10,sequential=False,queue=queue)# Register a controller/consumer for the queue name@romeways.queue_consumer(queue_name="queue.payment.done",config=config_q)asyncdefcontroller(message:romeways.Message):print(message)config_p=romeways.MemoryConnectorConfig(connector_name="memory-dev1")# Register a connectorromeways.connector_register(connector=romeways.MemoryQueueConnector,config=config_p,spawn_process=True)asyncio.run(romeways.start())
Package: romexpander
romexpandercan be run exactly like ROM Expander Pro,
otherwise behaviour is overridden by CLI arguments.Installation:pip install romexpanderUsage:romexpander.py [options] [INPUT]
romexpander.py [-h | --help]
romexpander.py [-v | --version]Arguments:INPUT                   optional input ROM file.Options:-v,--versionshow version info.-h,--helpshow this message.-o,--outputtargetspecify an output file.-t,--txtcfgspecify a config file.
Package: romkan
python-romkanpython-romkanis a Romaji/Kana conversion library for Python, which is used to convert a Japanese Romaji (ローマ字) string to a Japanese Kana (仮名) string or vice versa.It is the Pythonic port ofRuby/Romkan, originally authored by Satoru Takabayashi andportedby Masato Hagiwara.python-romkanworks on Python 2 and Python 3 (fully tested onPython 2.6,2.7,3.2,3.3andPyPy). It handles both Katakana (片仮名) and Hiragana (平仮名) with the Hepburn (ヘボン式) romanization system, as well as the modern Kunrei-shiki (訓令式) romanization system.Project homepage:http://www.soimort.org/python-romkanFork me on GitHub:https://github.com/soimort/python-romkanInstallationInstall viaPip:$ pip install romkanInstall viaEasyInstall:$ easy_install romkanInstall from Git:$ git clone git://github.com/soimort/python-romkan.git
$ python setup.py installUsagePython 3.x:$ python
>>> import romkan
>>> print(romkan.to_roma("にんじゃ"))
ninja
>>> print(romkan.to_hepburn("にんじゃ"))
ninja
>>> print(romkan.to_kunrei("にんじゃ"))
ninzya
>>> print(romkan.to_hiragana("ninja"))
にんじゃ
>>> print(romkan.to_katakana("ninja"))
ニンジャPython 2.x:$ python2
>>> import romkan
>>> print romkan.to_roma(u"にんじゃ")
ninja
>>> print romkan.to_hepburn(u"にんじゃ")
ninja
>>> print romkan.to_kunrei(u"にんじゃ")
ninzya
>>> print romkan.to_hiragana("ninja")
にんじゃ
>>> print romkan.to_katakana("ninja")
ニンジャAPI Referenceto_katakana(string)Convert a Romaji (ローマ字) to a Katakana (片仮名).to_hiragana(string)Convert a Romaji (ローマ字) to a Hiragana (平仮名).to_kana(string)Convert a Romaji (ローマ字) to a Katakana (片仮名). (same asto_katakana)to_hepburn(string)Convert a Kana (仮名) or a Kunrei-shiki Romaji (訓令式ローマ字) to a Hepburn Romaji (ヘボン式ローマ字).to_kunrei(string)Convert a Kana (仮名) or a Hepburn Romaji (ヘボン式ローマ字) to a Kunrei-shiki Romaji (訓令式ローマ字).to_roma(string)Convert a Kana (仮名) to a Hepburn Romaji (ヘボン式ローマ字).Licensepython-romkanis licensed under theBSD license.Changelog0.2.1Date: 2013-02-26Improved Python compatibility (2.6, <=3.1).0.2.0Date: 2013-02-21Fixed the explicit unicode literal issue on Python 3.2.Tested on Travis CI for Python 2.7, 3.2, 3.3 and PyPy.0.1.0Date: 2013-02-120.0.2Date: 2013-01-29Fixed #1.0.0.1Date: 2012-12-06Initial release.
Package: rom-manager
ROM ManagerVersion: 0.0.25Convert Game ROMs to Compressed Hunks of Data (CHD) file format or RVZ file formatAutomatically generate missing .cue files for your .bin files!Why?CHD (“Compressed Hunks of Data”) files are compressed data files that can be used on most CD-based systems.
They are in a lossless compression format, meaning that they perfectly preserve all game data while reducing file sizes.
CHDs were originally developed for MAME to compress CD-based arcade games,
but now they are compatible with a variety emulators and CD-based consoles.RVZ files are compressed also compressed files, but they are built for Dolphin Emulator specificallySupports:Sony PlayStationSony PlayStation 2Sony PSPSega CDSega SaturnSega DreamcastNEC TurboGrafx-CD (PC Engine CD)Neo Geo CDPanasonic 3DOAmiga CD32Philips CD-INintendo WiiNintendo GameCubeArchive Types Extracted:7zrarziptar.gztargzgzipbzip2bz2File Types Scanned:cueisogdiwbfsbinUsage:Short FlagLong FlagDescription-h--helpSee Usage-c--cpu-countLimit max number of CPUs to use for parallel processing-d--directoryDirectory to scan for ROMs-x--deleteDelete the original files-f--forceForce overwrite of existing CHD files-v--verbosePrint all debug informationExample:rom-manager--directory"C:/Users/default/Games/"Installation Instructions:Install Python Packagepython-mpipinstallrom-managerGeniusbot ApplicationUse with a GUI through GeniusbotVisit ourGitHubfor more informationInstallation Instructions with Geniusbot:Install Python Packagepython-mpipinstallgeniusbotRepository Owners:
Package: romnnn-sphinx-press-theme
romnn's sphinx press themeSee alive demo.This is a fork of the originalsphinx_press_themebyschettino72,
which is a modern and responsive theme for python'sSphinxdocumentation generator.The theme is based onVuePressand usesVue.js+Styluswithwebpack.UsageFirst install the theme:pipinstallromnnn_sphinx_press_themeTo use the theme, set the theme name topressin your sphinx project'sconf.py:html_theme="press"For more information, see theSphinx theming docs.DevelopmentBuild the web assets:cdui
npmrunbuildThe generatedtheme.css,theme.jsandtheme-vendors.jswill be linked into the theme underromnn_sphinx_press_theme/static.Install theme locally:pipinstall-e.Review the theme by building the theme's documentation underdocs/:makedocsGenerated html will be indocs/build/html.
Package: rompar
Masked ROM optical data extraction tool.Latest version:https://github.com/SiliconAnalysis/romparOriginal version by Adam Laurie, but significant changes by John McMasterOriginal message:Note that this initial version is very much a quick-and-dirty ‘see if this method is useful’
kind of tool. If it is, hopefully it will evolve into something pretty and elegant!usage: rompar.py <IMAGE> <BITS PER GROUP> <ROWS PER GROUP> [GRID FILE]Hit ‘h’ when the image has focus to produce some keystroke help in the calling window.For a walked through example, read this:http://oamajormal.blogspot.co.uk/2013/01/fun-with-masked-roms.htmlEnjoy!
Adam
Package: rompot-schedio
Rompot SchedioA Python Library for Robotic DrawingsDocumentation:https://rompot-schedio.entelecheia.aiGitHub:https://github.com/entelecheia/rompot-schedioPyPI:https://pypi.org/project/rompot-schedioRompot-Schedio is an innovative and versatile Python library designed to facilitate the creation, manipulation, and control of robotic drawings. The name Rompot-Schedio combines the Greek words ρομπότ (robot) and σχέδιο (drawing), embodying the library's mission to empower users to design, simulate, and execute robotic drawing projects with ease and precision.ChangelogSee theCHANGELOGfor more information.ContributingContributions are welcome! Please see thecontributing guidelinesfor more information.LicenseThis project is released under theMIT License.
Package: rompt
Rompt.aiPython LibraryRompt streamlines your workflow, improves collaboration, enhances GPT model performance, and provides seamless integration with its CLI tool and output format support.FeaturesVersion control and changelog on promptsGenerate prompts from template stringsPull prompts from Rompt into your codebaseInstallationInstall the client & CLI library:pipinstallromptPull your prompts into your codebase using the CLI:romptpull--token{YOUR_TOKEN}UsageTo use the library, you'll first need to import it:fromromptimportgenerategenerated_with_metadata=generate(prompt_name="your-prompt-name",template_object={NAME:"Michael",DIRECTION:"Generate a Tweet"},)prompt=generated_with_metadata.get('prompt')# Your result is now in the prompt variableTrack Historyfromromptimportgenerate,track# ...continued from abovetrack(generated_with_metadata)# Your GPT responses can be included; example with OpenAI:constgpt_response=openai.Completion.create({prompt=prompt,#...})track(generated_with_metadata,gpt_response)DocumentationFor detailed documentation, including API references and more examples, please visit thethe Rompt.ai website.ContributingWe welcome contributions to the Rompt Node.js library. If you'd like to contribute, please submit a pull request on GitHub.LicenseThis project is licensed under the MIT License. For more information, please see theLICENSEfile.
Package: roms-tools
ROMS-toolsOverviewA suite of python tools for setting up aROMSsimulation.Note these tools are for theCenter for Earth Systems Research Groupat UCLA's version of ROMS.Installation instructionsInstall via pippipinstallroms-toolsCheck the installation has worked by running the tests (you will need to also install pytest to run these)pytestDependencies required are xarray and netcdf4, plus matplotlib and cartopy for visualising grids.ROMS-tools should run on any platform that can install the above dependencies.Usage instructionsTo set up all the input files for a new ROMS simulation from scratch, follow these steps in order.Step 1: Make GridThe first step is choosing the domain size, location, and resolution. Do this by creating an instance of theGridclass:fromroms_toolsimportGridgrid=Grid(nx=100,# number of points in the x-direction (not including 2 boundary cells on either end)ny=100,# number of points in the y-direction (not including 2 boundary cells on either end)size_x=1800,# size of the domain in the x-direction (in km)size_y=2400,# size of the domain in the y-direction (in km)center_lon=-21,# longitude of the center of the domaincenter_lat=61,# latitude of the center of the domainrot=20,# rotation of the grid's x-direction from lines of constant longitude, with positive values being a counter-clockwise rotation)To visualize the grid we have just created, use the.plotmethod:grid.plot()To see the values of the grid variables you can examine thexarray.Datasetobject returned by the.dspropertygrid.ds<xarray.Dataset>
Dimensions:    (eta_rho: 3, xi_rho: 3, one: 1)
Dimensions without coordinates: eta_rho, xi_rho, one
Data variables:
    angle      (eta_rho, xi_rho) float64 0.0 0.0 0.0 -1.46e-16 ... 0.0 0.0 0.0
    f0         (eta_rho, xi_rho) float64 4.565e-06 4.565e-06 ... -4.565e-06
    pn         (eta_rho, xi_rho) float64 5e-06 5e-06 5e-06 ... 5e-06 5e-06 5e-06
    lon_rho    (eta_rho, xi_rho) float64 339.1 340.0 340.9 ... 339.1 340.0 340.9
    lat_rho    (eta_rho, xi_rho) float64 1.799 1.799 1.799 ... -1.799 -1.799
    spherical  (one) <U1 'T'
    tra_lon    (one) int64 -20
    tra_lat    (one) int64 0
    rotate     (one) int64 0
Attributes:
    Title:    ROMS grid. Settings: nx: 1 ny: 1  xsize: 0.1 ysize: 0.1 rotate:...
    Date:     2023-11-20
    Type:     ROMS grid produced by roms-toolsOnce we are happy with our grid, we can save it as a netCDF file via the.savemethod:grid.save('grids/my_new_roms_grid.nc')The basic grid domain is now ready for use by ROMS.Steps 2-7:Coming soon!Feedback and contributionsIf you find a bug, have a feature suggestion, or any other kind of feedback, please start a Discussion.We also accept contributions in the form of Pull Requests.See alsoROMS source codeC-Star
Package: romulus
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: romy
romyUnofficial ROMY python library (SDK).This library was created for theHome Assistant ROMY integration.InstallationpipinstallromyNotesUnofficial ROMY python library (SDK).Based on thelocal interface procotoclCurrently supported ROMY robots:ROMY C5ROMY L6 PerformanceROMY L6 AnimalOnly local connections are supported. Local Http Interface must be unlocked.Where can i get the password to unlock the local http interfaceThe 8 digit password is provided under the dustbin of your romy vacuum cleaner. (The QR code provides the password too)
Package: ronchang
RonChangWhat is this?This is my personal hands-on develop toolkits.namepopurseTimercolorful and expandable timerHow to install?pipinstallronchang1. Timer- importfromronchangimportTimerTimer(interval,# unit: secondsstart=None,is_error=False,exception=None,**kwargs)- demonstrationfromronchangimportDemoDemo.Timer()2. Slicer- importfromronchangimportSlicerSlicer.list()Slicer.dict()Slicer.number()- demonstrationfromronchangimportDemoDemo.Slicer()3. Bar- importfromronchangimportBarBar(count,amount,desc=f'{count}of{amount}',info='INFO')- demonstrationfromronchangimportDemoDemo.Bar()If you like my work, please consider buying me a coffee orPayPalThanks for your support! Cheers! 🎉
Package: ron-cipher
ron-cipherA CLI tool that implements various ciphers, including the ability to encrypt and decryptSupported CiphersCaeserVigenèreHow To UseThis tool is meant to be used as a CLI (command line interface). You will need to install the package from pypipipinstallron-cipherAfter installing, you can immediately start using the tool from your command lineCaeser CipherEncryptionDefault Rotationron_ciphercaeser-i"some random string"-aencryptCustom RotationThe rotation is an int which works by pushing the values over by 1. Do note that the dictionary used to store characters
and their indices is likely not what you expected. Please take a look atciphers.cipher_helperif you want to see
how characters are storedron_ciphercaeser-r1-i"some random string"-aencryptDecryptionDefault Rotationron_ciphercaeser-i"4c0> e.#qc0 4(e^#["-adecryptCustom Rotationron_ciphercaeser-r1-i">:.3 =~/2:. >?=7/5"-adecryptVignère CipherEncryptionDefault Secretron_ciphervigenere-i"some random string"-aencryptCustom SecretThe secret is a string which works by getting the indices of the characters within the secret and adding them to the
respective indices of the plaintext to find the encrypted valueron_ciphervigenere-s"supersecret"-i"some random string"-aencryptDecryptionDefault Rotationron_ciphervigenere-i",[<^ ,?@(g? ,{[#@0"-adecryptCustom Rotationron_ciphervigenere-s"supersecret"-i",i%+ ,&<6>{ m\\#,"-adecryptTroubleshootingThere is some weirdness when it comes to some inputs and how bash decides to interpret them. If you want to be safe, try
the following ways:Wrap With QuotesUse EqualsExample:ron_ciphercaeser-s"supersecret"-i=",i%+ ,&<6>{ m\\#,"-adecrypt
Package: rondo
Record and replay mouse and keyboard actions in Oracle VirtualBox sessions.Rondo records actual execution behavior, not video, essentially enabling VirtualBox users to create OS-wide macros.VMware has offered a similar feature called [Enhanced Execution Record / Replay](http://blogs.vmware.com/workstation/2008/04/enhanced-execut.html) since 2008, but Rondo brings that functionality to Oracle VirtualBox.Install with:pip install rondoRun with:rondo [–r record_log_file] [–p replay_log_file] virtual_machine_nameTips
—
It helps to start the mouse at the same location between record and replay sessions because Rondo stores relative mouse movements. Pay close attention to the guest OS’s state to avoid misplaced mouse/keyboard executions.
Package: ronglian-sdk
发布说明v1.0发布日期: 2020-06-29功能说明：通过SDK方式提供发送模板短信功能。示例from sdk.SmsSDK import SmsSDK

accId = '容联云通讯分配的主账号ID'
accToken = '容联云通讯分配的主账号TOKEN'
appId = '容联云通讯分配的应用ID'

def send_message():
    sdk = SmsSDK(accId, accToken, appId)
    tid = '容联云通讯创建的模板'
    mobile = '手机号1,手机号2'
    datas = ('变量1', '变量2')
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)目录结构SmsSDK
│ readme.md
├─demo
│      SmsDemo.py
│
├─sdk
│  │  algorithm.py
│  │  SmsSDK.py
│  │  __init__.pyhttps://www.yuntongxun.com
Package: ronglian-sms-sdk
安装SDK$pipinstallronglian_sms_sdkCollecting ronglian_sms_sdk…✔ Successfully installed ronglian-sdk-xx…示例from ronglian_sms_sdk import SmsSDK

accId = '容联云通讯分配的主账号ID'
accToken = '容联云通讯分配的主账号TOKEN'
appId = '容联云通讯分配的应用ID'

def send_message():
    sdk = SmsSDK(accId, accToken, appId)
    tid = '容联云通讯创建的模板'
    mobile = '手机号1,手机号2'
    datas = ('变量1', '变量2')
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)发布说明v1.0发布日期: 2020-06-29功能说明：提供发送模板短信功能。目录结构python-sms-sdk
│ readme.md
| requirements.txt
├─example
│      SendMessage.py    -- 发送短信示例
│
├─ronglian_sms_sdk
│  │  algorithm.py       -- SDK依赖算法
│  │  SmsSDK.py          -- 短信SDK
│  │  __init__.pyhttps://www.yuntongxun.com
Package: rongo
RongoRongo provides Service Container, Service Providers, Facades, Caching, Queues and Jobs, Broadcasting, Mail, Configuration management,
Env file management..., combined with modern asynchronous micro-frameworks (fastapi, sanic),
to become a very good and easy-to-use full-scale stack web framework.Rongo提供容器、服务提供者、Facade、缓存、队列、广播、邮件、配置管理、env文件管理...,与现代异步微框架(fastapi、sanic)结合，
成为一个性能很好的非常好用的全栈 Web 框架。简介1、Rongo，与 Thinkphp Laravel 相同的架构，使用注册树模式构造了一个容器，程序启动时，把所有功能模块按需加载进入容器;2、全部基于异步协程 asyncio 开发，性能很好;3、代码的注释清晰、完整。快速入门创建并激活一个虚拟环境，支持 Python 3.7+# 安装
pip install rongo

# 启动 -- 在你的应用入口文件里 (config_path是配置文件路径，具体模板可以直接去开发文档里抄)
import rongo.foundation
rongo.foundation.Application(config_path='config').register()

# 使用
from rongo.facades import Cache
await Cache.set('age', 18)什么时候可以用于生产环境？现在还处于初步开发阶段，等版本号到0.1.0的时候，就可以用于生产环境了。
版本0.1.0之前，会把基本功能写完；并把单元测试写完，测试覆盖率至少90%以上；以及一份完整的开发手册。为什么有Rongo?它很像框架，但还称不上框架。 本人特别喜欢 Thinkphp Laravel 这两个 PHP 框架，成熟稳定，功能齐全，但又做到了轻量，按需加载。
python 语言方面的框架，成熟、稳定、性能好、又好用、又全面的框架，很少，几乎没有。我最早发现的是 Masonite， 跟我喜欢的两个 PHP 框架很像，功能全面， 架构方面也都是在框架启动时通过注册树模式把所有服务加载到内存中。 开发文档写得很好，很清晰。
我研究了它的功能，还参与翻译了开发手册，也看了底层代码。发现有些基本功能是缺失的，比如 ORM 模块无法定义联合索引； 还发现些常用的功能，有BUG， 我参与修复了其中一个BUG；
它底层代码，有点不太会用设计模式但又用得模有样的感觉；性能不好，比如它的 Cache 模块，循环 get 1万次1.5秒，我重写后 Rongo 是1秒。后来我发现了 Django，它的热度非常高，据说成熟稳定，于是我决定好好研究它， 想着以后写 Python 方面的程序就用它。
但我经过整整一两个月的阅读文档、实践，依然学不会，不知是框架太难用，还是我太笨。个人感觉，Django 体系太杂，古老又杂乱无章。后来我迷上了异步微框架，FastAPI，感觉发现了新大陆。性能特别好，代码特别清晰，类型提示特别完整，入参检测非常严谨又方便好用，深度自动化API文档。
学习成本也小，我用了一晚上把开发文档看了一遍，第二天写了会儿代码，基本就上手了。但在我心目中缺点是，它只是个微框架，只有 web 框架最基本的验证、请求和响应相关。所以，有了Rongo许可 LicenseRongo 是在 MIT 许可下获得许可的开源软件。The Rongo is open-sourced software licensed under the MIT license.
Package: ronkyuu
論及 ronkyuu - mention, reference to, touching uponPython package to help with parsing, handling and other manipulations of the IndieWeb Toolkit items, such as:WebmentionDiscovery of mentions in a publisher's post, the handling of finding what the Webmention callback is for the reference and also handling of incoming Webmention requests are handled.RelMeTake a source URL and a resource URL that is supposed to be a rel=me for the source and verify that it is.See the examples/ directory for sample command line tools.Because Ronkyuu usesBeautifulSoup4for it's amazing HTML wrangling ability, you have the option of enabling faster parsing via thelxmlpackage instead of the defaulthtml5libpackage.import ronkyuu

ronkyuu.webmention.setParser('lxml')Contributorsbear (Mike Taylor)kartikprabhu (Kartik Prabhu)WebMentionsfindMentions(sourceURL, targetURL, ...)Find all<a />elements in the html returned for a post.
If any have anhrefattribute that is not from the one of the items in domains, append it to our lists.findEndpoint(html)Search the givenhtmlcontent for all<link />elements and return any discovered WebMention URL.discoverEndpoint(sourceURL, ...)Discover any WebMention endpoint for a givensourceURL.sendWebmention(sourceURL, targetURL, webmention)Send to thetargetURLa WebMention for thesourceURL.
The WebMention will be discovered if it is not given in the optionalwebmentionparameter.RelMefindRelMe(sourceURL)Find all<a />elements in the given html for a post.
If any have an href attribute that isrel="me"then include it in the result.confirmRelMe(profileURL, resourceURL, profileRelMes, resourceRelMes)Determine if a givenresourceURLis authoritative for theprofileURL.
The list ofrel="me"links will be discovered if not provided in the optionalprofileRelMesparameter or theresourceRelMesparameter.ValidatorsURLValidator classTODO: fill in details of how to useRequiresPython v3.9+ -- seePipfilefor the full listTheMakefiletakes advantage ofPipenv(which will usepyenvif installed) to manage the Python dependencies.For testing we usehttmockto mock the web calls.
Package: ronnie
All contributions by Kevin Lok:
Copyright (c) 2018 - 2018, Kevin Lok Ka Wing.All rights reserved.
Licensed under the MITVersion 1.9.x:
1) Add Major Model Architecture templates:
1.1) Alexnet
1.2) VGG
1.3) GoogLeNet
1.4) ResnetAdd logs to each modelsIMPORTANT:
Changes of Input argurements at collector.buildFromDF
FROM collector.buildFromDF(orgDF, batchNum=1, batchSize=20000) TO collector.buildFromDF(orgDF,cfg.dataCfg, batchNum=1, batchSize=20000)
will result to error while excute the py after you upgrade from 1.8.x to 1.9.x only.