Saravanan666/pypi-org huggingface dataset:
Package: weasel
Weasel: A small and easy workflow systemWeasel lets you manage and shareend-to-end workflowsfor
differentuse cases and domains, and orchestrate training, packaging and
serving your custom pipelines. You can start off by cloning a pre-defined
project template, adjust it to fit your needs, load in your data, train a
pipeline, export it as a Python package, upload your outputs to a remote storage
and share your results with your team. Weasel can be used via theweaselcommand and we provide templates in ourprojectsrepo.💡 Example: Get started with a project templateThe easiest way to get started is to clone a project template and run it – for
example, thisend-to-end templatethat lets you train a spaCypart-of-speech
taggeranddependency parseron a Universal Dependencies treebank.python-mweaselclonepipelines/tagger_parser_udNoteOurprojectsrepo includes various
project templates for different NLP tasks, models, workflows and integrations
that you can clone and run. The easiest way to get started is to pick a
template, clone it and start modifying it!📕 DocumentationGet started with the documentation:Learn how to create a Weasel workflowWorking with directory and assetsRunning custom scriptsUsing remote storageWeasel integrationsCommand line interface descriptionMigrating from spaCy ProjectsWeasel is a standalone replacement for spaCy Projects.
There are a few backward incompatibilities that you should be aware of:TheSPACY_CONFIG_OVERRIDESenvironment variable is no longer checked.
You can set configuration overrides usingWEASEL_CONFIG_OVERRIDES.Support for thespacy_versionconfiguration key has been dropped.Support for thecheck_requirementsconfiguration key has been dropped.Support forSPACY_PROJECT_USE_GIT_VERSIONenvironment variable has been dropped.Error codes are now Weasel-specific, and do not follow spaCy error codes.Weasel checks for the first three incompatibilities and will issue a
warning if you're using it with spaCy-specific configuration options.
Package: weasel-classifier
WEASEL 2.0 - A Random Dilated Dictionary Transform for Fast, Accurate and Memory Constrained Time Series ClassificationWEASEL 2.0 combines a novel dilation mapping, small dictionaries and hyper-parameter ensembling to obtain a fast, accurate, and constrained memory TSC. WEASEL 2.0 is significantly more accurate than its predecessor dictionary methods (BOSS, TDE, WEASEL), and in the same group as SotA non-ensemble methods.ArXiv-Paper:https://arxiv.org/abs/2301.10194Accuracy against dictionary classifiersAccuracy against SotA classifiersRuntime against SotA classifiersInstallationDependenciesaeon >= 0.1.0InstallationThe easiest is to use pip to install weasel-classifier.a) Install using pippip install weasel-classifierYou can also install  the project from source.b) Build from SourceFirst, download the repository.git clone https://github.com/patrickzib/dictionary.gitChange into the directory and build the package from source.pip install .Train a WEASEL 2.0 classifierWEASEL v2 follows the aeon pipeline.fromaeon.datasetsimportload_arrow_headfromweasel.classification.dictionary_basedimportWEASEL_V2X_train,y_train=load_arrow_head(split="train",return_type="numpy3d")X_test,y_test=load_arrow_head(split="test",return_type="numpy3d")clf=WEASEL_V2(random_state=1379,n_jobs=4)clf.fit(X_train,y_train)clf.predict(X_test)CitingIf you use this algorithm or publication, please cite (ArXiv:https://arxiv.org/abs/2301.10194):@article{schaefer2023weasel2,author={Schäfer, Patrick and Leser, Ulf},title={{WEASEL 2.0 - A Random Dilated Dictionary Transform for Fast, Accurate and Memory Constrained Time Series Classification}},journal={arXiv preprint arXiv:2301.10194},year={2023},}
Package: weasel-cli
Dawkins' Weasel CLISimple implementation of the classicweasel program.AboutAlthough the weasel simulation really works, I'm using this project mostly to test things like CLI development, Github Actions, PyPI deployment, etc.Installationpip install weasel-cliUsage$ weasel --help
Usage: weasel [OPTIONS]

  Simulate Dawkins' weasel experiment

Options:
  -t, --target TEXT               [default: METHINKS IT IS LIKE A WEASEL]
  -p, --population-size INTEGER RANGE
                                  [default: 100]
  -r, --mutation-rate FLOAT RANGE
                                  [default: 0.05]
  --color / --no-color            Uses ANSI colors when reporting generation
                                  results  [default: True]

  --help                          Show this message and exit.ContributingSeeCONTRIBUTING.mdfile for more information.LicenseThis project is licensed under the terms of the MIT license - see theLICENSEfile for details.Icons made byFreepikfromwww.flaticon.com.
Package: weasel-make
Weasel MakeWeasel Make is a Makefile-compatible build tool that hides the output of your commands if it executed successfully.
Very useful when executingmake build deployover and over again.FeaturesBash auto-completions - Just press tab after theweaselcommand to see the list of available actions.Output folding - Hides output of successful commands, or shows it if the command failed.Secrets obfuscation - Any line of text that looks like it might be sensitive secrets information gets replaced with***InstallationInstall easily withpip install weasel-make. If you are installing withoutsudo, make sure to add python to yourPATHby executing:echo'export PATH=$(python3 -m site --user-base)/bin:$PATH'>>~/.bashrcTo install auto-completions forweasel, also execute the following:echo'source <(weasel --bash-autocompletions-source)'>>~/.bashrcUsageTo execute targets from your Makefile with Weasel Make, use theweaselcommand followed by your target names:weaselbuilddeployThis will run thebuildanddeploytargets as specified in yourMakefile.Makefile CompatibilityWeasel Make is designed to be compatible with standard Makefiles, so you should be able to run your existing Makefiles without any modifications.ContributingContributions are welcome! Please feel free to submit pull requests or create issues if you encounter any problems or have suggestions for new features.
Package: weasl-sdk
Python Weasl SDKThis package is the Python integration for authentication powered byWeaslExamplesHere are a couple examples you can use to get started:Flaskfrom flask import Flask, jsonify, session
from weasl.integrations.flask import login_required

app = Flask(__name__)
app.config['WEASL_CLIENT_ID'] = 'YOUR CLIENT ID'


@app.route('/me')
@login_required
def user():
    return jsonify(session.current_user)
Package: weas-widget
Welcome to WEAS Widget!A widget to visualize and edit atomistic structures in Jupyter Notebook. It usesWEAS(Web Environment For Atomistic Structure) in the backend.Features:Model: space-filling, ball-stick, polyhedral.Supported File type: cif, xyz.Edit structure: move, rotate, delete and replace atoms.Support periodic boundary conditionsAnimationIsosurfaceVector field, e.g., magnetic momentInstallationUse the pip:pip install weas-widgetTo install the latest version from source, first clone the repository and then install using pip:$gitclonehttps://github.com/superstar54/weas-widget$pipinstall-eweas-widgetEdit the structure with mouse and keyboardWEAS supports editing the atoms directly in the GUI and synchronizing with the structure of the Python object.Select AtomsThere are two methods for selecting atoms:Pick Selection: Click directly on an atom to select it.Range Selection: Hold theShiftkey and drag the right mouse button to select a group of atoms.Move, Rotate selected atomsPress the transform shortcut, and move your mouse.OperationShortcutMovegRotaterDelete selected atomsPress thexkey to delete the selected atomsExport edited atomsOne can export the edited atoms to ASE or PymatgenExampleLoad structureOne can load a structure from ASE or Pymatgenfromase.buildimportmoleculefromweas_widgetimportWeasWidgetatoms=molecule("C2H6SO")viewer=WeasWidget()viewer.from_ase(atoms)viewerCrystal viewFor a nice visualization of a crystal, one usually shows the polyhedra and the atoms on the unit cell boundary, as well as the bonded atoms outside the cell.fromweas_widgetimportWeasWidgetviewer1=WeasWidget()viewer1.load_example("tio2.cif")viewer1.modelStyle=2viewer1.boundary=[[-0.1,1.1],[-0.1,1.1],[-0.1,1.1]]viewer1.showBondedAtoms=Trueviewer1.colorType="VESTA"viewer1Isosurfacefromase.buildimportmoleculefromweas_widgetimportWeasWidgetfromase.io.cubeimportread_cube_datavolume,atoms=read_cube_data("h2o-homo.cube")viewer=WeasWidget()viewer.from_ase(atoms)viewer.volumetricData={"values":volume}viewer.isoSettings=[{"isovalue":0.0001,"mode":0}]viewerMagnetic momentShow the magnetic moment as a vector field.fromase.buildimportbulkfromweas_widgetimportWeasWidgetimportnumpyasnpatoms=bulk("Fe",cubic=True)atoms*=[2,2,1]atoms.set_array("moment",np.ones(len(atoms)))viewer=WeasWidget()viewer.from_ase(atoms)viewer.modelStyle=1viewerPhononOne can visualize the phonon dispersion via lattice vibrations. One only need to use the eigenstates (calculated with an external software) to generate the trajectory.importnumpyasnpfromase.buildimportbulkfromweas_widgetimportWeasWidgetfromweas_widget.utilsimportgenerate_phonon_trajectoryatoms=bulk("Fe",cubic=True)eigenvector=np.array([[0,-0.0,0.5],[0,0.0,-0.5]])trajectory=generate_phonon_trajectory(atoms,eigenvector,repeat=[4,4,1])viewer=WeasWidget()viewer.from_ase(trajectory)# set a vector field to show the arrowviewer.vectorField=[{"origins":"positions","vectors":"movement","radius":0.1}]viewerDownload imageviewer.download_image("filename.png")How to usePlease visit:https://weas-widget.readthedocs.io/en/latest/index.htmlContactXing Wangxingwang1991@gmail.comLicenseMIT
Package: weasyprint
The Awesome Document FactoryWeasyPrint is a smart solution helping web developers to create PDF
documents. It turns simple HTML pages into gorgeous statistical reports,
invoices, tickets…From a technical point of view, WeasyPrint is a visual rendering engine for
HTML and CSS that can export to PDF. It aims to support web standards for
printing. WeasyPrint is free software made available under a BSD license.It is based on various libraries butnoton a full rendering engine like
WebKit or Gecko. The CSS layout engine is written in Python, designed for
pagination, and meant to be easy to hack on.Free software: BSD licenseFor Python 3.8+, tested on CPython and PyPyDocumentation:https://doc.courtbouillon.org/weasyprintExamples:https://weasyprint.org/#samplesChangelog:https://github.com/Kozea/WeasyPrint/releasesCode, issues, tests:https://github.com/Kozea/WeasyPrintCode of conduct:https://www.courtbouillon.org/code-of-conductProfessional support:https://www.courtbouillon.orgDonation:https://opencollective.com/courtbouillonWeasyPrint has been created and developed by Kozea (https://kozea.fr/).
Professional support, maintenance and community management is provided by
CourtBouillon (https://www.courtbouillon.org/).Copyrights are retained by their contributors, no copyright assignment is
required to contribute to WeasyPrint. Unless explicitly stated otherwise, any
contribution intentionally submitted for inclusion is licensed under the BSD
3-clause license, without any additional terms or conditions. For full
authorship information, see the version control history.
Package: weather
AbstractPyWeather contains weather related modules implemented in Python.
Anything weather related is fair game for PyWeather.  Currently
PyWeather is limited to unit conversion, console reading, and data
publication.  But, future work can be added to PyWeather in any area.Unit ConversionPyWeather has a lot of support for common unit conversions in
distance, temperature, pressure, and volume.  Conversion from
Fahrenheit to Celsius, and kelvin is supported, as well as conversions
between inches of mercury and millibars.Station ObservationsPyWeather also contains modules that are capable of downloading
observations from weather consoles.  The current list of supported
weather consoles includes:Davis Vantage ProDavis Vantage Pro2Data PublicationPyWeather contains a module that allows developers to post conditions
to weather aggregation sites. The current list of support services includes:WeatherUnderground (wundgerground.com)PWS Weather        (pwsweather.com)WeatherForYou      (weatherforyou.com)For additional information, please email the maintainer:pyweather@tuxcoder.com
Package: weather2
weather - Access weather forecastInstallationpip install weatherUsageimportweatherforecast=weather.forecast()forecast.today['6:00'].temp# Get temperature in current location at 6.00Different placesIf you want to get forecast from different place, passforecastan argument.importweatherforecast=weather.forecast('New York')forecast.tommorow['11:00'].precip# Get precipitation in New York at 11.00Different sourcesweathersupports two weather sources:Yr.No7timer!If you want to get weather from different source, passforecastargument calledsource.weather.forecast(service='yrno')weather.forecast(service='7timer')Weather propertieswind: Instance ofWind()Properties:speed: IntegerSpeed in m/sdirection: Instance ofDirection()Properties:angle: IntegerAngle in degreesdirection: StringAngle in compass point ('N','NE','E','SE','S','SW','W', or'NW')temp: Float/IntegerTemperature in °C or °F (not °K) (default °C, see 'Changing units')humid(yr.noonly, other services will returnNone): Float/IntegerHumidity in %.precip(7timerwill returnbool): Float/IntegerPrecipitation amount in milimetersChanging unitsweather.forecast('New york',unit=weather.CELSIUS)#or weather.FAHRENHEITCLIJust runweather:[user@localhost ~] weatherIf you want to get all avaliable switches, useweather -h:usage:weather[-h][--cityCITY][--countryCOUNTRY][-d][-sSERVICE][-u][-a]Pythonappforgettingweatherforecastoptions:-h,--helpshowthishelpmessageandexit--cityCITYCityforforecast(ifnotpassed,usingcurrentlocation)--countryCOUNTRYCountryforforecast(seeabove)-d,--debugDebug-sSERVICE,--serviceSERVICEServicetouse("yrno"or"7timer").Impliedwith"average"(trytooptimisetheservice)-u,--uglyToggleJSONoutput-a,--apiJustprintthedata(impliesJSONoutput)That says basically enough to use it.Licenseweatheris licensed underMIT license
Package: weather4py
Weather4Pya weather library for python to get the weather of a location or set of coordinates, with the ability to save to a json. By default it's C, and it can be changed to F temperature measuring system.Github repository for Weather4PyHere's some examples to how to use the library.fromWeatherPyimportWeatherMan# takes an input of metric(C)/imperial(F)WeatherMan("owo").set_measurement("metric")# to get the region of a locationprint(WeatherMan("38.8,37.7").region)# result: Kuluncak/Malatya, Turkey# to get the weather of a locationprint(WeatherMan("israel").weather)# result: Sunny# to get the temperature of a locationprint(WeatherMan("texas").temperature)# result: 30# to get the humidity of a locationprint(WeatherMan("newyork").humidity)# result: 64%# to reobtain infromation about a location.WeatherMan("owo").obtain_information()# to save the results to a folder in json formatWeatherMan("38.8,37.7").save_to_file("output.json")
Package: weatherapi
weatherapi: Get weather data easilyweatherapi is a simple python library that allows you to get weather data from weatherapi.com,
you just need to have a key (free access)Installationpip install weatherapiUsing weatherapi#!/usr/bin/env pythonfromweatherapiimportWeatherPoint# set a point of interest where we want to get weather data fromkey={VALIDKEY}latitude=-33.9longitude=50.48# Initializing the WeatherPointpoint=WeatherPoint(latitude,longitude)# Setting the key for data accesspoint.set_key(key)# get current weather datapoint.get_current_weather()# access to specific weather datapoint.temp_c# temperature in celsiuspoint.wind_kmh# wind in kilometers per hourpoint.localtime# local datetime of the request# soon all the docs availablesVisit and contribute to our Github repohttps://github.com/martin-conur/weatherapi
Package: weather-api
Getting startedThis is the new API for weather forecasting.How to BuildYou must have Python2 >=2.7.9or Python3 >=3.4installed on your system to install and run this SDK. This SDK package depends on other Python packages like nose, jsonpickle etc.
These dependencies are defined in therequirements.txtfile that comes with the SDK.
To resolve these dependencies, you can use the PIP Dependency manager. Install it by following steps athttps://pip.pypa.io/en/stable/installing/.Python and PIP executables should be defined in your PATH. Open command prompt and typepip --version.
This should display the version of the PIP Dependency Manager installed if your installation was successful and the paths are properly defined.Using command line, navigate to the directory containing the generated files (includingrequirements.txt) for the SDK.Run the commandpip install -r requirements.txt. This should install all the required dependencies.How to UseThe following section explains how to use the WeatherApi SDK package in a new project.1. Open Project in an IDEOpen up a Python IDE like PyCharm. The basic workflow presented here is also applicable if you prefer using a different editor or IDE.Click onOpenin PyCharm to browse to your generated SDK directory and then clickOK.The project files will be displayed in the side bar as follows:2. Add a new Test ProjectCreate a new directory by right clicking on the solution name as shown below:Name the directory as "test"Add a python file to this project with the name "testsdk"Name it "testsdk"In your python file you will be required to import the generated python library using the following code linesfromweather_api.weather_api_clientimportWeatherApiClientAfter this you can write code to instantiate an API client object, get a controller object and  make API calls. Sample code is given in the subsequent sections.3. Run the Test ProjectTo run the file within your test project, right click on your Python file inside your Test project and click onRunHow to TestYou can test the generated SDK and the server with automatically generated test
cases. unittest is used as the testing framework and nose is used as the test
runner. You can run the tests as follows:From terminal/cmd navigate to the root directory of the SDK.Invokepip install -r test-requirements.txtInvokenosetestsInitializationAuthenticationIn order to setup authentication and initialization of the API client, you need the following information.ParameterDescriptionappidapp keyAPI client can be initialized as following.# Configuration parameters and credentialsappid='e7b16ebe3fbe47e6b97f6821cff80e5d'# app keyclient=WeatherApiClient(appid)Class ReferenceList of ControllersFindWeatherControllerFindWeatherControllerGet controller instanceAn instance of theFindWeatherControllerclass can be accessed from the API Client.find_weather_controller=client.find_weatherfindThe endpoint to get data of a specific city.deffind(self,q)ParametersParameterTagsDescriptionqRequiredDefaultValueCity NameExample Usageq='Islamabad'result=find_weather_controller.find(q)Back to List of Controllers
Package: weather-apiiii
Getting startedThis is the new API for weather forecasting.How to BuildYou must have Python2 >=2.7.9or Python3 >=3.4installed on your system to install and run this SDK. This SDK package depends on other Python packages like nose, jsonpickle etc.
These dependencies are defined in therequirements.txtfile that comes with the SDK.
To resolve these dependencies, you can use the PIP Dependency manager. Install it by following steps athttps://pip.pypa.io/en/stable/installing/.Python and PIP executables should be defined in your PATH. Open command prompt and typepip --version.
This should display the version of the PIP Dependency Manager installed if your installation was successful and the paths are properly defined.Using command line, navigate to the directory containing the generated files (includingrequirements.txt) for the SDK.Run the commandpip install -r requirements.txt. This should install all the required dependencies.How to UseThe following section explains how to use the WeatherApiiii SDK package in a new project.1. Open Project in an IDEOpen up a Python IDE like PyCharm. The basic workflow presented here is also applicable if you prefer using a different editor or IDE.Click onOpenin PyCharm to browse to your generated SDK directory and then clickOK.The project files will be displayed in the side bar as follows:2. Add a new Test ProjectCreate a new directory by right clicking on the solution name as shown below:Name the directory as "test"Add a python file to this project with the name "testsdk"Name it "testsdk"In your python file you will be required to import the generated python library using the following code linesfromweather_apiiii.weather_apiiii_clientimportWeatherApiiiiClientAfter this you can write code to instantiate an API client object, get a controller object and  make API calls. Sample code is given in the subsequent sections.3. Run the Test ProjectTo run the file within your test project, right click on your Python file inside your Test project and click onRunHow to TestYou can test the generated SDK and the server with automatically generated test
cases. unittest is used as the testing framework and nose is used as the test
runner. You can run the tests as follows:From terminal/cmd navigate to the root directory of the SDK.Invokepip install -r test-requirements.txtInvokenosetestsInitializationAuthenticationIn order to setup authentication and initialization of the API client, you need the following information.ParameterDescriptionappidapp keyAPI client can be initialized as following.# Configuration parameters and credentialsappid='e7b16ebe3fbe47e6b97f6821cff80e5d'# app keyclient=WeatherApiiiiClient(appid)Class ReferenceList of ControllersFindWeatherControllerFindWeatherControllerGet controller instanceAn instance of theFindWeatherControllerclass can be accessed from the API Client.find_weather_controller=client.find_weatherfindThe endpoint to get data of a specific city.deffind(self,q)ParametersParameterTagsDescriptionqRequiredDefaultValueCity NameExample Usageq='Islamabad'result=find_weather_controller.find(q)Back to List of Controllers
Package: weather-applet
weather-appletWeather system tray applet for X11, written in Python 3 and PyQt 6. An
API key fromhttps://openweathermap.org/is required.FunctionalityShows system tray icon displaying current weather icon and
temperatureLeft single- or double-click toggles splash screen with weather info
for now, today, tomorrow or the weekMiddle-click triggers icon resetLocation can be selected automatically, by name, by OWM id or by
coordinatesRequirementsappletlib (https://github.com/jmechnich/appletlib)Python 3PyQt 6ScreenshotsSplash screen showing today's weather
Package: weatherbroker
weatherbrokerWeather broker for PythonLicense: Apache License 2.0Warning: Refer to weather provider license about caching, storing and
redistributing weather information.Provides current weather information as an unified dict:time: monitoring time, unix timestamplat: latitudelon: longitudeclouds (%)temp: temperaturehum: humidity (%)pres: pressurewind_spd: wind speedwind_deg: wind degreevis: visibilitydewp: dew pointuv: UV indexicon: icon code (provider specific)description: human readable weather descriptionprecip_type: precip typeprecip_prob: precip probability (%)precip_int: precip intensitysunrise: HH:mmsunset: HH:mmWeather forecast is not implemented (yet).Note: some providers may not provide certain data fields, in this case they are
set to None.The module contains providers for:openweathermap:https://openweathermap.org/weatherbit:https://www.weatherbit.io/darksky:https://darksky.net/Usage example:fromweatherbrokerimportWeatherEnginew=WeatherEngine()w.set_provider('darksky')w.key='my secret api key'w.set_location(lat=50.08804,lon=14.42076)# the code below sets the same location, but DarkSky supports only coordinates,# so we use them instead# w.set_location(city_id=3067696)# w.set_location(city='Prague', country='CZ')# w.lang = 'cs'print(w.get_current())(c) 2018 Altertech Group,https://www.altertech.com/