Saravanan666/pypi-org huggingface dataset:
Package: yatotem2scdl
Yet Another totem to scdlRationaleLargement inspiré dedatafin - totem.Le but de ce projet est de proposer une bibliothèque python de conversion de fichiers totem vers le format SCDL.
En effet, le projet de base cité plus haut n'est pas conçu pour être utilisé comme une bibliothèque.LimitationsActuellement, seuls les budgets sont supportés.Les plans de comptes ne sont pas fournis avec le package.norme-budgetaire-downloaderQuickstartPréparer l'environnementpython-mvenv.venv
..venv/bin/activate
pipinstall-rrequirements.txtConstruire le packagepython-mbuildTestspytestAjouter des tests boite noireLe fichiertest_conversions.pycontient des tests boite noire, les jeux de données étant quant à eux situés dansexemples.
Il est possible d'ajouter des cas de test via la variable d'environnementYATOTEM2SCDL_EXEMPLES_ADDITIONNELS, qui pointe vers un dossier suivant la même nomenclature queexemples.set-lx YATOTEM2SCDL_EXEMPLES_ADDITIONNELS<DOSSIER_AVEC_JEUX_DE_TESTS_ADDITIONNELS>
pytestCLIAprès installation du package, la commandeyatotem2scdldevient disponible:$yatotem2scdl--helpUploadPour upload sur un repository PyPI:python-mbuild
twineupload--repository-urlhttps://<REPO_URL>/repository/pypi-hosted/dist/*
Package: yatracker
YaTrackerAsyncio Yandex Tracker API clientDocumentation:https://olegt0rr.github.io/YaTracker/API docs:https://cloud.yandex.com/en/docs/tracker/about-apiAttention!Allselfproperties renamed tourlcause it's incompatible with Python.AllcamelCaseproperties renamed topythonic_case.All datetime values converted to python'sdatetime.datetimeobjects.Methods named by author, cause Yandex API has no clear method names.How to installpip install yatrackerHow to usefromyatrackerimportYaTrackertracker=YaTracker(org_id=...,token=...)asyncdeffoo():# create issueissue=awaittracker.create_issue('New Issue','KEY')# get issueissue=awaittracker.get_issue('KEY-1')# update issue (just pass kwargs)issue=awaittracker.edit_issue('KEY-1',description='Hello World')# get transitions:transitions=awaitissue.get_transitions()# execute transitiontransition=transitions[0]awaittransition.execute()# don't forget to close tracker on app shutdownasyncdefon_shutdown():awaittracker.close()
Package: ya_tracker_client
Yandex Tracker Client (or Yet Another Tracker Client)Async Yandex Tracker Client based on aiohttp and pydanticAPI docs:https://cloud.yandex.com/en/docs/tracker/about-apiInstallationpipinstallya_tracker_clientorpoetryaddya_tracker_clientUsageimportosfromasyncioimportrunfromdotenvimportload_dotenvfromya_tracker_clientimportYaTrackerClientload_dotenv()# from registered application at Yandex OAuth - https://oauth.yandex.ru/API_TOKEN=os.getenv("API_TOKEN")# from admin panel at Yandex Tracker - https://tracker.yandex.ru/admin/orgsAPI_ORGANISATION_ID=os.getenv("API_ORGANISATION_ID")asyncdefmain()->None:# init clientclient=YaTrackerClient(organisation_id=API_ORGANISATION_ID,oauth_token=API_TOKEN,)# create issuenew_issue=awaitclient.create_issue('New issue','TRACKER-QUEUE')# get issueissue=awaitclient.get_issue('KEY-1')# update issue (just pass kwargs)issue=awaitclient.edit_issue('KEY-1',description='Hello World')# don't forget to close tracker on app shutdownawaitclient.stop()if__name__=="__main__":run(main())Explanations about namingAllselfproperties renamed tourlcause it's incompatible with Python;AllcamelCaseproperties renamed topythonic_case;All datetime values converted to python'sdatetime.datetimeobjects;Methods named by author, cause Yandex API has no clear method names.Current library capabilitiesWorking with queuesGetting information about issues, priorities and transitionsWorking with issue relationshipsGetting user informationMore info about work status here:https://github.com/danfimov/ya_tracker_client/milestone/1
Package: yatrash
yatrashSafely move files into a trash can instead ofrm.OS Independent, as long as your OS supports Python'spathlibandshutil.Now living onGithubDetailed usage$ trash --help
usage: __main__.py [-h] [--trash-dir TRASH_DIR]
                   [trash_files [trash_files ...]]

...
see the real --help for moreWhy do we need another trash utility?This is mostly for self-educational purposes.If you actually want a trash utility, seetrash-cliwhich
implements thexdg trash specification, so it will play nicely
with your Desktop's trash and other tools. It also features more
utilities, such as recover.OriginCodeReviewGithub GistGithub Repository(current home)
Package: yats
YATS - Yet Another Twitter ScraperYATS is an ultra-fast, login-less, dependency-free Twitter scraper.InstallationRun the following command, no dependency needed, only python 3.6+ & an internet connection.pip install yatsHow to use itYATS will fetch all the tweets from a query, day after day. To get this query, simply go toTwitter's official search query generator, and create your desired query.You can set the number of parallel threads using the-targument.Usage exampleGet all Tweets fromElon Musksince the beginning, using 50 parallel threadsyats '(from:elonmusk)' -t 50 -v
Package: yattag
Why use a template engine when you can generate HTML or XML documents with Python in a very readable way?( full tutorial onyattag.org)Basic exampleNested html tags, no need to close tags.fromyattagimportDocdoc,tag,text=Doc().tagtext()withtag('html'):withtag('body',id='hello'):withtag('h1'):text('Hello world!')print(doc.getvalue())Html form renderingYattag can fill your HTML forms with default values and error messages.
Pass adefaultsdictionary of default values, and anerrorsdictionary of error messages to theDocconstructor.
Then, use the specialinput,textarea,select,optionmethods when generating your documents.Example with default valuesfromyattagimportDocdoc,tag,text=Doc(defaults={'ingredient':['chocolate','coffee']}).tagtext()withtag('form',action=""):withtag('label'):text("Select one or more ingredients")withdoc.select(name='ingredient',multiple="multiple"):forvalue,descriptionin(("chocolate","Dark chocolate"),("almonds","Roasted almonds"),("honey","Acacia honey"),("coffee","Ethiopian coffee")):withdoc.option(value=value):text(description)doc.stag('input',type="submit",value="Validate")print(doc.getvalue())Example with default values and errorsfromyattagimportDocdoc,tag,text=Doc(defaults={'title':'Untitled','contact_message':'You just won the lottery!'},errors={'contact_message':'Your message looks like spam.'}).tagtext()withtag('h1'):text('Contact form')withtag('form',action=""):doc.input(name='title',type='text')withdoc.textarea(name='contact_message'):passdoc.stag('input',type='submit',value='Send my message')print(doc.getvalue())Full tutorial onyattag.orgGitHub repo:https://github.com/leforestier/yattag
Package: yatte
yatteA simple task runnerMake and Bash are useful tools but the syntax can be tricky,
especially if you're writing Bash inside a Makefile.
And sometimes you need the flexibility and expressivity
of a proper programming language with a standard library.If you know Ruby, you're probably already familiar with Rake;
and for Python there's Invoke.
But maybe you don't want to invest time in learning a new tool
and its idiosyncracies.Yatteis for when you just want to write a Python script
and get back to work.Project linksDocumentationSource codeBug reports etc.QuickstartInstall the package:pip install yatteCreate a file namedtasks.pycontaining some functions decorated with@task:fromsubprocessimportrunfromsysimportexit,stderrfromyatteimporttask@task("greet")defhello():"""Greet the world"""print("Hello, world!")@task("list-files")deflist_files(dir):"""List the files in the directory"""shell(f"ls{dir}")defshell(cmd):print("sh>",cmd,file=stderr)p=run(cmd,shell=True)ifp.returncode:exit(p.returncode)Then callyatteby itself to list the tasks:$ yatte
greet                   Greet the world
list-files dir          List the files in the directoryAndyatte {task}to execute the given task:$ yatte list-files .
sh> ls .
pyproject.toml README.md tasks.pySee thedocsfor more details.
Package: yatter
YATTERThe tool translates mapping rules from YARRRML in a turtle-based serialization of RML or R2RML.Installation:pip install yatterExecution from CLITo execute from command line run the following:From YARRRML to [R2]RMLpython3-myatter-ipath_to_input_yarrrml.yml-opath_to_rdf_mapping.ttl[-fR2RML]From [R2]RML to YARRRMLpython3-myatter-ipath_to_input_rdf_mapping.ttl-opath_to_output_yarrrml.yml[-fR2RML]-f R2RMLis an optional parameter for translating input YARRRML to R2RML (and inverse)Execution as a libraryIf you want to include the module in your implementation:for translatingYARRRML mappingtoRML mappings(and inverse):importyatterfromruamel.yamlimportYAML# YARRRML to RMLyaml=YAML(typ='safe',pure=True)rml_content=yatter.translate(yaml.load(open("path-to-yarrrml")))# RML to YARRRMLyarrrml_content=yatter.inverse_translate("rdf_mapping_content")for translatingYARRRML mappingstoR2RML mappings(and inverse):importyatterfromruamel.yamlimportYAMLR2RML_URI='http://www.w3.org/ns/r2rml#'# YARRRML to R2RMLyaml=YAML(typ='safe',pure=True)rml_content=yatter.translate(yaml.load(open("path-to-yarrrml")),mapping_format=R2RML_URI)# R2RML to YARRRMLyarrrml_content=yatter.inverse_translate("rdf_mapping_content",mapping_format=R2RML_URI)for merging TriplesMap based on id:importyatterlist_yarrrml_mappings=["content_mapping_yarrrml1","content_mapping_yarrrml1"]yarrrml_content=yatter.merge_mappings(list_yarrrml_mappings)Specifications conformant:These are the following specifications used by the translation process:YARRRML:https://w3id.org/kg-construct/yarrrmlR2RML:https://www.w3.org/TR/r2rml/RML:https://rml.io/specRML-star:https://w3id.org/rml/star/specRML-IO:https://w3id.org/rml/io/specRML-FNML:https://w3id.org/rml/fnml/specTo be implemented soon:RML-core:https://w3id.org/rml/core/specRML-CC:https://w3id.org/rml/cc/specCite this work:If you used Yatter in your work, please cite theICWE2023paper:@inproceedings{iglesias2023human,title={Human-Friendly RDF Graph Construction: Which One Do You Chose?},author={Iglesias-Molina, Ana and Chaves-Fraga, David and Dasoulas, Ioannis and Dimou, Anastasia},booktitle={International Conference on Web Engineering},pages={262--277},year={2023},doi={10.1007/978-3-031-34444-2_19},organization={Springer}}AuthorsOntology Engineering Group:David Chaves-FragaMarino González García (Final bachelor thesis - Systematic Testing)Luis López Piñero (Final bachelor thesis - v0.1)
Package: yatts
YATTS - Yet Another Terminal Text StylerStyles terminal textInstallpip install yatts4-Bit Color Examplesfromyattsimportstyle# Prints yatts with dark green text colorprint(style('yatts',['green','dark']))# Prints yatts with red text color and dark yellow backgroundprint(style('yatts','red',['yellow','dark']))# Prints yatts with white text color, blue background and italic text styleprint(style('yatts',bgcolor='blue',italic=True))# Prints a bold, italic, overlined yattsprint(style('yatts',decorations=['bold','italic','overline']))8-Bit Color Examplesfromyattsimportstyleyatts=' yatts '*10# Dark green text colorprint(style(yatts,2)+'\n')# Light red text color with light orange background colorprint(style(yatts,196,223)+'\n')# 4-Bit and 8-Bit colors mixed and bold parameter# combined with decorations parameterprint(style(yatts,'white',238,bold=True,decorations=['underline','overline']))Add/Remove Examplesfromyattsimport*yatts=' yatts '*10yatts=style(yatts,'blue',235,decorations=['italic','underline'])print(yatts+'\n')yatts=add(yatts,'bold')print(yatts+'\n')yatts=remove(yatts,['color','underline'])print(yatts+'\n')yatts=remove_all(yatts)print(yatts)Function ArgumentsStyle Function# Styles a textdefstyle(text,color=None,bgcolor=None,bold=False,italic=False,underline=False,striketrough=False,decorations=None):All valid strings fordecorations:'bold''blink''italic''overline''underline''striketrough''double_underline'Add Function# Adds a specific style to a textdefadd(text,style,value=None):Remove Functions# Removes one or more specific style from a styled textdefremove(text,style):# Removes all styles from a styled textdefremove_all(text):All valid strings forstyle:'color''bgcolor''bold''blink''italic''overline''underline''striketrough''double_underline'4-Bit Color Palette8-Bit Color Palette
Package: yAuth
yAuthyAuth is an integration ofyModel,ySanicandpyJWTIt defines models and methods for JWT token authentication as the Authentication header and a Bearer tokenExampleCheck the application defined in the test folderInstallationpip install yAuthHelpFeel free to help if you think something is weird or incomplete by submiting a pull requestWhat is already needed[] More testing[] Continous integration[] Better help & documentationI'm not a technical person but still want to helpYou can tip the project with cryptos too:BTC: 1GtKxwZGR65ar9V8xafxhMiniZyqXej2GCETH: 0x01bd478b8C07633D2f4E58AC553f72CE4E590d56LTC: LYUzrFX6ck5uMhw5VqcD9piQHnX7oeSLdhXMR: 49stcvbfjEkWLjb6mdG21zMJ3uRrLmN3bazGQ8cHjjsVHYYyY61N6P7emCXhpsvB2Vc8Uuz2FA1Qk6hkE8e4ADmJQQ64eyTADA: DdzFFzCqrhsoUF5UjGGAYUayV5uNCJZ17PJn9V8X9MTQ26m2wDVycme42gufKufPNWMazfJLg8RKHpc1iFvn6j8BTJjaozGtLPzCDx5tNEM: NDGYO6X3NTD6CX3V7MCCYKQPBIOYGZRXEKDLCDW2
Package: yavin
Yavin API Python ClientPython client for Yavin APIGetting startedRegister or sign up to get your developer API key:my.yavin.comRead our documentation:api.yavin.com/docsInstallpip install yavinExamplefromyavinimportClientyavin_client=Client('<yavin_secret_key>')yavin_client.transactions.get({'start_date':'2019-12-12','end_date':'2020-03-03','limit':2})print(yavin_client.transactions.data)Learn more about our Yavin :www.yavin.comChangelog1.0.0 (2020-03-30)Create a Python client for Yavin.Make transactions endpoint available.
Package: yavuz-unique
Yavuz UniqueYavuz Unique is an innovative project with unique features that stand out. This project focuses on the following objectives:Implementing a groundbreaking first featureExploring the possibilities of the second featureEnhancing user experience with the third featureInstallationTo install Yavuz Unique on your local machine, follow these steps:Clone the repository:gitclonehttps://github.com/yavuz0x/yavuz_unique.gitNavigate to the project directory:cdyavuz_uniqueInstall the required dependencies:pipinstall-rrequirements.txtUsageThe project can be run with the following command:python3main.py
Package: yawaei
Yet Another Wrapper Around Epitech IntranetThis project still contains Work in progress.The goal of the project is to centralize to a single library, data exchange methods around the Epitech intranet.The final form of this project will be a package that can be imported inside python scripts and projects.InstallationpipinstallYawaeiUsageimportYawaeitoken="<intranet-autologin-token>"Intra=Yawaei.intranet.AutologinIntranet(token)Contentabc.pyIntranetinterfaceintranet.pyAutologinIntranetimplementation ofIntranetinterfaceFor developpersAMakefileis available inside the repository to build and upload to pypi for test and prod.
Package: yawap
Yet Another Wifi Access PointAccess point and wifi connection toolFree software: MIT licenseDocumentation:https://yawap.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.9 (2020-03-16)allows to update / get global config of wpa_supplicant0.0.8 (2020-03-16)set the country code in wpa_supplicant during installCan pass any wpa_supplicant param when adding a new network via –network-conf0.0.7 (2019-12-21)Increase Timeout for service to start0.0.6 (2019-12-20)Run as a daemon, allow use as non root user0.0.5 (2019-12-16)bugfix: reset connection at startup0.0.4 (2019-12-12)bugfix: remove use of “mv”, causing dnsmasq conf file to be lost / removed0.0.3 (2019-12-11)add service target0.0.2 (2019-12-09)improve valid internet connectionimprove SSID parsingno sudo0.0.1 (2019-09-13)First release on PyPI.
Package: yawast
YAWASTThe YAWAST Antecedent Web Application Security ToolkitYAWAST is an application meant to simplify initial analysis and information gathering for penetration testers and security auditors. It performs basic checks in these categories:TLS/SSL - Versions and cipher suites supported; common issues.Information Disclosure - Checks for common information leaks.Presence of Files or Directories - Checks for files or directories that could indicate a security issue.Common VulnerabilitiesMissing Security HeadersThis is meant to provide a easy way to perform initial analysis and information discovery. It's not a full testing suite, and it certainly isn't Metasploit. The idea is to provide a quick way to perform initial data collection, which can then be used to better target further tests. It is especially useful when used in conjunction with Burp Suite (via the--proxyparameter).DocumentationChecks PerformedInstallationUsage & ParametersScanning TLS/SSLOpenSSL & 3DES CompatibilitySample OutputFAQPlease seeyawast.orgfor full documentation.UsageThe most common usage scenario is as simple as:yawast scan <url1> <url2>Detailedusage informationis available on the YAWAST web site.ContributingFork it (https://github.com/adamcaudill/yawast/fork)Create your feature branch (git checkout -b my-new-feature origin/develop)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Create a new Pull RequestIssues that are labeled asbeginnerare great starting points for new contributors. These are less complex issues that will help make you familiar with working on YAWAST.Contributions, in the form of feature requests and pull requests are both welcome and encouraged. YAWAST will only evolve if users are willing and able to give back, and work too make YAWAST better for everyone.Information on development standards, and guidelines for issues are available in ourCONTRIBUTINGdocument.Special ThanksBSI AppSec- Generously providing time to improve this tool.SecLists- Various lists are based on the resources collected by this project.FuzzDB Project- Various lists are based on the resources collected by this project.
Package: yawd-admin
yawd-admin, a django administration websiteyawd-adminis an
administration website for django. It extends the default django admin
site and offers the following:A clean and beautiful bootstrap user interfaceHand-written pure HTML5/CSS3 code with indented HTML outputResponsive interface, optimized for mobile phones and tabletsRegister custom database settings (options) editable from the UI. You can use allstandard django form fieldsfor these settingsIntegration with google analytics for displaying statistics in the admin home pageRegister your applications to the top-bar navigationRefurbished original django admin widgetsMechanism for opening the original django admin popup windows with fancyboxSeamless integration withyawd-translationsfor multilingual admin websitesNoteYou can access alive demoof yawd-admin athttp://yawd-admin.yawd.eu/.
Just usedemo/demoas username and password.yawd-admin v.0.7.0 is developed under Django 1.5.x and does NOT work with older Django releases. For django version compatibility of older yawd-admin versions please have a look to the documentation.Usage and demoSee theyawd-admin documentationfor information on how to install the demo and use yawd-admin.
Package: yawd-elfinder
yawd-elfinder, a file management solution for DjangoelFinderis a jQuery web file manager providing standard features -such as
uploading, moving, renaming files etc-, as well as a set of advanced features
such as image resizing/cropping/rotation and archive file creation.yawd-elfinderprovides a fully-featured python/django implementation for the
elfinder connector v.2. A custom Model Field (tied to a nice form widget)
is also provided. Therefore, you can easily manage your files
through the Django admin interface, assign them to model fields and access
the file URLs in your Django templates.yawd-elfindercan manage local files but also use Django filesystem storages to
connect to remote filesystems. A set of django options allows control over
file and directory permissions, accepted mime types, max file sizes etc.The current version is 0.90.02, use the github version for the latest fixes.Noteyawd-admin v0.90.03 is the last version intended to work with
Django 1.4. The current master is actively developed under Django 1.5
and does NOT work with older Django releases. For those still using
Django 1.4, you can checkout the0.90.xbranch or use the yawd-elfinder
v0.90.02 pypi package. New features will not be backported to the0.90.xbranch. Since many of us run production systems tied to Django 1.4, both
v0.90.02 and the latest documentation will be online on readthedocs.org.Usage and demoSee theyawd-elfinder v0.90.03 documentationfor information on how to install the demo and use yawd-elfinder.ScreenshotsThe admin widgetElfinder in action
Package: yawd-translations
yawd-translations, create multilingual django websitesyawd-translationsprovides a set of tools for creating multilingual websites withdjango.The application includes the following tools:Manage the website’s installed Languages through the admin interfaceGenerate translation messages (makemessagesandcompilemessages) for all installed applications and defined languages using the admin interface (no need to restart the web server).Translatable db models APIA customadmin inlineto manage db translationsA custom middleware to replacedjango.middleware.locale.LocaleMiddlewareand achieve the following:Change the way django detects language preference and use the db default language (set through the admin interface)Redirects to language-dependant URLs are permanent (301) and not temporary (302).A patterns function (that behaves pretty-much like django’s owni18n_patterns()does) to achieve the following:Match root URL paths as default language URLs: If your default language is English (en),i18n_patterns()will not match the/URL as the english homepage and the django middleware would redirect pages to their/en/equivalent (e.g. your homepage would behttp://example.com/en/and all requests tohttp://example.com/would be redirected tohttp://example.com/en/). The custom patterns function implements the exact opposite, which is a common practice to web development. Thereforehttp://example.com/will be matched as the real permalink (instead ofhttp://example.com/en/). For non-default languages, the custom patterns function behaves likei18n_patters()does.Acontext processorto access available languages in your templates and a simpletemplate tagto easily switch between the available translations of a page in the front-end website.Noteyawd-translations v0.5.2 is the last version intended to work with
Django 1.4. The current master is actively developed under Django 1.5
and does NOT work with older Django releases. For those still using
Django 1.4, you can checkout the0.5.xbranch or use the yawd-translations
v0.5.2 pypi package. New features will not be backported to the0.5.xbranch. Since many of us run production systems tied to Django 1.4, both
v0.5.2 and the latest documentation will be online on readthedocs.org.Usage and demoSee theyawd-translations v0.5.2 documentationfor information on how to install the demo and use yawd-translations.