Saravanan666/pypi-org huggingface dataset:
Package: bvslusa
bvslusaInstallpipinstallbvslusaHow to useimportpandasaspdfrombvslusa.validateimportremove_restritivos,target_mappingfrombvslusa.evaluateimportevaluate_bvs_scoresfrombvslusa.ratingsimportget_ratingsdf=pd.read_csv('../data/AVZA_FB727003.csv',sep=';')df<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
</style>DOC_NUMBERSAFRAQTD_SCPCVL_SCPCQTD_CCFQTD_PROTESTOVL_PROTESTOFLAG_RESTRITIVOSCRCRDMERPJ3SCRCRDMERPJ4SCRCRDMERPJ5SCRCRDATACADSCRCRDMERMEIPERF_MERC_60D6M_EVER0891026202203001001267256581855MAU198238320220300000028325646061930BOM217612920220300000028325646071234BOM356608120220300000028325646078130BOM476061320220300000028325646071234BOM.............................................3573477685920220300049111484767513969902MAU357359432520220300049111484767513969902MAU3573631593020220300049111484767513969902MAU3573766832320220300049111484767513969902MAU35738140483202203000252851487767531956131BOM35739 rows × 14 columnsdf=remove_restritivos(df)df=target_mapping(df,target='PERF_MERC_60D6M_EVER',map_dict={'BOM':0,'MAU':1})df.pipe(evaluate_bvs_scores)<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
</style>scoreaucks0SCRCRDMERPJ50.69477030.861SCRCRDATACAD0.66614728.282SCRCRDMERMEI0.61045319.223SCRCRDMERPJ30.59812616.934SCRCRDMERPJ40.57487613.56As the SCRCRDMERPJ5 is the best bvs score, let’s proceed to build
ratings with it:df_ratings=get_ratings(df,target='PERF_MERC_60D6M_EVER',score='SCRCRDMERPJ5')<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
</style>BinCountCount (%)Non-eventEventEvent rateWoEIVJS0(-inf, 294.50)33410.14290027096320.189165-0.8921880.1631451.974255e-021[294.50, 357.50)13360.05714311072290.171407-0.7719470.0466115.685828e-032[357.50, 405.50)13800.05902511841960.142029-0.5490940.0222912.751878e-033[405.50, 457.50)14690.06283112991700.115725-0.3140820.0070558.782459e-044[457.50, 491.50)14060.06013712751310.093172-0.0721290.0003224.028209e-055[491.50, 535.50)15470.06616814131340.0866190.0079970.0000045.272191e-076[535.50, 570.50)11890.0508551095940.0790580.1075810.0005637.034663e-057[570.50, 597.50)12760.0545771200760.0595610.411710.0078139.698149e-048[597.50, 629.50)13450.0575281269760.0565060.4676180.0103861.286575e-039[629.50, 682.50)23400.10008622231170.0500000.5968060.0279413.441700e-0310[682.50, 748.50)31830.13614230681150.0361290.9362160.0818219.869692e-0311[748.50, inf)35680.1526093498700.0196191.5638180.2026772.303251e-0212Special00.000000000.0000000.00.0000000.000000e+0013Missing00.000000000.0000000.00.0000000.000000e+00Totals233801.0000002134020400.0872540.5706286.776995e-02
Package: bvsr
BVSRBatch Video Size Reduction (BVSR) usingffmpeg.A python script to reduce the size of all videos in a folder while keeping its exact structure.RequirementsPython 3ffmpegInstallationpipinstallbvsrUsageusage:bvsr.py[-h][--version][--destination-folderDESTINATION_FOLDER][--crfCRF|--video-qualityVIDEO_QUALITY|--target-sizeTARGET_SIZE][--audio-qualityAUDIO_QUALITY][--ffmpeg-execFFMPEG_EXEC][--encoderENCODER][-i]source_folder

positionalarguments:source_folderTheSourcefolderofthevideos

options:-h,--helpshowthishelpmessageandexit--versionshowprogram's version number and exit--destination-folder DESTINATION_FOLDERThe directory where the output videos will be stored, default to the same folder name with `bvsr` suffix in theparent directory--crf CRF             Target Constant Rate Factor (CRF) value (RECOMMENDED)[More info at: https://trac.ffmpeg.org/wiki/Encode/H.264]--video-quality VIDEO_QUALITYTarget video quality. Available qualities: ['videophone', 'videoconferencing', '240p', '360p', '480p', 'VCD', '720p','720p60', '1080p', '1080p60']--target-size TARGET_SIZETarget upper bound video size (in MB)--audio-quality AUDIO_QUALITYTarget audio quality. Default to the audio quality of the source video. Available qualities: ['low', 'mid-range','medium', 'high', 'highest']--ffmpeg-execFFMPEG_EXECTheffmpegexecutablefile,defaultto`ffmpeg`--encoderENCODERThevideoencodername-i,--ignore-other-filesIgnoretheothernon-videofiles,thedefaultoperationistocopytheotherfilestothetargetfoldertokeepthesamesourcefolderstructureExamplesTherecommendedway to reduce the size of a video file is to use theConstant Rate Factor (CRF):The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default, and 51 is worst quality possible. A lower value generally leads to higher quality, and a subjectively sane range is 17–28. Consider 17 or 18 to be visually lossless or nearly so; it should look the same or nearly the same as the input but it isn't technically lossless.
The range is exponential, so increasing the CRF value +6 results in roughly half the bitrate / file size, while -6 leads to roughly twice the bitrate.Choose the highest CRF value that still provides an acceptable quality. If the output looks good, then try a higher value. If it looks bad, choose a lower value.Run the following command to use a CRF value of 34 for example:bvsr--crf34/path/to/the/source_folderThis will output the results in a folder in the parent directory with the same name of yoursource_foldersuffixed with_bvsr.
The output folder will have the same structure as thesource_folder(i.e. processing the video files and just copying any other file. Use--ignore-other-filesto ignore them instead).If you want to specify a video quality rather than using the CRF:bvsr--video-quality480p/path/to/the/source_folderAvailable qualities:['videophone', 'videoconferencing', '240p', '360p', '480p', 'VCD', '720p', '720p60', '1080p', '1080p60']If you just care about the size and not the quality, you can specify a  target size inMBdirectly:bvsr--target-size100--destination-folder/path/to/destination_folderAlthough it is not guaranteed.LicenseGPLv3 ©Batch Video Size Reduction (BVSR)
Package: bw25ui
Brightway2-UIThis is now the official repo for  Brightway2-UI:a web and command line user interface, part of theBrightway2 LCA frameworkhttps://brightway.dev.Theoriginalsource code was hosted on Bitbucket:https://bitbucket.org/tomas_navarrete/brightway2-ui.Compatibility with Brightway2XThis repository is used to produce 2 packages: one compatible with brightway25 (bw25ui), and one compatible with brightway2 (bw2ui).InstallationBoth,conda/mambaand wheels frompypi.orgare available.
The package names are different for Brightway25 and Brightway2, but the main executable script is still the same.[!NOTE]
The requirements here are abstract, but they are different forbrightway25andbrightway2.
For brightway25, bw2calc must be>= 2.0.dev10and bw2analyzer>= 0.11for brightway2 bw2calc must be< 2and bw2analyzer>=0.10Brightway25To install aconda/mambapackage compatible with brightway25:mamba install -c tomas_navarrete bw25uiThere is also a pip wheel that you can install with:pip install bw25uiBrightway2To install a package compatible with brightway2:mamba install -c tomas_navarrete bw2uiThere is also a pip wheel that you can install with:pip install bw2uiRoadmapAs long as retro-compatibility is possible between Brightway25 and Brightway2, the code base will remain identical.Packages will be published with the same version tags, but different names.New features will be primarily implemented to work with Brightway25, and if they are compatible with Brightway2 they will be part of the same code base.When the implementation of new features in a single code base for Brightway2 and Brightway25 becomes imposible, a new branch calledlegacywill be created to track the code compatible with Brightway2. The same will be done in the long term once Brightway3 is released.Short termThe current code base is identical for both packages (bw25uiandbw2ui).
The current main branch will be kept as the branch for development, with identical code bases for both packagesuntilbrightway25 public API breaks the compatibility.Mid termOnce Brightway3 starts to exist, the main branch will be dedicated to it, with abw3uipackage.
Package: bw2all
This is a wrapper for the separate packages that make up the Brightway2 life cycle assessment framework. It installs all Brightway2 components and their dependencies:brightway2bw2calcbw2uibw2analyzerprogressbarflasknosedocoptvoluptuousSciPy, NumPy, and Matplotlib will also bw installed, but because they can be difficult to install correctly, it is recommended to install them using a prepackaged distribution like Python (x,y) or a package manager like macpors (Mac OS X) or apt (Debian/Ubuntu). See the Brightway2 documentation for more details. If you want to program with or use the more advanced features of Brightway2, then you should use the advanced installation.Main site:http://brightwaylca.orgSource code:https://bitbucket.org/cmutel/brightway2Documentation:https://brightway2.readthedocs.org/
Package: bw2-aware
AWARE regionalized LCIA method for BrightwayThis package provides theAWAREregionalized LCIA method inbrightwayandbrightway2-regional.Monthly characterization factors are currently not imported.InstallationAs this package requiresbw2regional, we recommend installation via conda.UsageYou should be in a project that has thebiosphere3base biosphere data installed.importbw2_aware,bw2regionalbw2regional.create_world_collections()bw2_aware.import_regionalized_aware()The following methods are now available to be used as (either regionalized or site-generic LCIA methods):('AWARE', '1.2 (April 2017)', 'Annual', 'Agricultural')('AWARE', '1.2 (April 2017)', 'Annual', 'Non-agricultural')
Package: bw2calc
This package provides the calculation engine for theBrightway2 life cycle assessment framework.Online documentationis available, and the source code is hosted onBitucket.The emphasis here has been on speed of solving the linear systems, for normal LCA calculations, graph traversal, or Monte Carlo uncertainty analysis.The Monte Carlo LCA class can do about 30 iterations a second (on a 2011 MacBook Pro). Instead of doing LU factorization, it uses an initial guess and the conjugant gradient squared algorithm.The multiprocessing Monte Carlo class (ParallelMonteCarlo) can do about 100 iterations a second, using 7 virtual cores. The MultiMonteCarlo class, which does Monte Carlo for many processes (and hence can re-use the factorized technosphere matrix), can do about 500 iterations a second, using 7 virtual cores. Both these algorithms perform best when the initial setup for each worker job is minimized, e.g. by dispatching big chunks.
Package: bw2io
This package provides tools for the import, export, and management of inventory databases and impact assessment methods. It is part of theBrightway2 LCA framework.Online documentationis available, and the source code is hosted onBitbucket.In contrast with previous IO functionality in Brightway2, brightway2-io uses an iterative approach to importing and linking data. First, data isextractedinto a common format. Next, a series ofstrategiesis employed to uniquely identify each dataset and link datasets internally and to the biosphere. Following internal linking, linking to other background datasets can be performed. Finally, database data is written to disk.This approach offers a number of benefits that help mitigate some of the serious problems in existing inventory data formats: the number of unlinked exchanges can be easily seen, linking strategies can be iteratively applied, and intermediate results can be saved.Here is a typical usage:In[1]:frombw2ioimport*In[2]:so=SingleOutputEcospold2Importer("/path/to/ecoinvent/3.1/cutoff/datasets","ecoinvent 3.1 cutoff")11301/11301(100%)||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Time:0:01:56ConvertingtounicodeExtracted11301datasetsin262.63secondsIn[3]:so.apply_strategies()Applyingstrategy:remove_zero_amount_coproductsApplyingstrategy:remove_zero_amount_inputs_with_no_activityApplyingstrategy:es2_assign_only_product_with_amount_as_reference_productApplyingstrategy:assign_single_product_as_activityApplyingstrategy:create_composite_codeApplyingstrategy:link_biosphere_by_flow_uuidApplyingstrategy:link_internal_technosphere_by_composite_codeApplyingstrategy:delete_exchanges_missing_activityApplyingstrategy:delete_ghost_exchangesApplyingstrategy:mark_unlinked_exchangesIn[4]:so.statistics()11301datasets521712exchanges0unlinkedexchangesOut[4]:(11301,521712,0)In[5]:so.write_database()Note that brightway2-io can’t magically make problems in databases go away.
Package: bw2landbalancer
bw2landbalancerbw2landbalancer is a Python library used to create balanced land transformation samples to override unbalanced sample.Unbalanced samples arise when land transformation exchanges are independently sampled.bw2landbalancerrescales certain land transformation exchanges to ensure that the ratio of
land transformationfromexchanges and land transformationtoexchanges is conserved. It is based on theBrightway2 LCA framework, and is meant to be used withpresamples.It was developped with ecoinvent in mind, though the modifications required to make it useful for other databases would be minimal.
Currently, elementary flows (biosphere exchanges in Brightway2) are identified as land transformation inputs or outputs
based on the patterns "Transformation, from" and "Transformation, to", respectively.
Other patterns can be added.InstallationUse the package managerpipto install bw2landbalancer:pipinstallbw2landbalanceror use conda:condainstall--channelpascallesagebw2landbalancerUsagefrombw2landbalancerimportDatabaseLandBalancerfrombrightway2importprojectsprojects.set_current("my project")dlb=DatabaseLandBalancer(database_name="ecoinvent_cutoff",#name the LCI db was given on import)Note: This is where one could add additional patters to identify land transformation exchanges, via theland_from_patternsandland_to_patterns(lists of strings).# Generate samples, and format as matrix_data for use in presamplesdlb.add_samples_for_all_acts(iterations=1000)0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:18:11# Create presamples packagedlb.create_presamples(name='some name',dirpath=some/path,id_='some id',seed='sequential',#or None, or int)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.AcknowledgmentSpecial thanks to Quantis US for having funded the early iterations of this work.
Package: bw2parameters
Brightway2 parametersLibrary for storing, validating, and calculating with parameters. Designed to work with theBrightway2 life cycle assessment framework, but is generic enough to work in other use cases.In [1]: from bw2parameters import ParameterSet

In [2]: parameters = {
   ...:        'Deep_Thought': {'amount': 42},
   ...:        'East_River_Creature': {'formula': '2 * Deep_Thought + 16'},
   ...:        'Elders_of_Krikkit': {'formula': 'sqrt(East_River_Creature)'},
   ...: }

In [3]: ParameterSet(parameters).evaluate()
Out[3]: {'Deep_Thought': 42, 'East_River_Creature': 100, 'Elders_of_Krikkit': 10.0}Compatible with Python 2.7 and 3.3+. 100% test coverage.Source code on Github, documentation onRead the Docs.
Package: bw2qsd
What isBW2QSD?BW2QSDis an interface package to tailor the functions inBrightway2to existing and future quantitative sustainable design (QSD) packages.InstallationNoteFor detailed instructions, please refer to thetutorials. It is recommended to create a separate conda environment.The package can be downloaded fromPyPI.If you use pip:pipinstallbw2qsdTo get the git version (you can optionally use the depth flag to choose how many commit histories you want to clone):gitclonehttps://github.com/QSD-Group/BW2QSD.git--depth=1Author and ContributingAuthors:Yalin Li;Joy ZhangPlease refer to theContributing to QSDsansection of the documentation for instructions and guidelines.License informationPlease refer to theLICENSE.txtfor information on the terms & conditions for usage of this software, and a DISCLAIMER OF ALL WARRANTIES.
Package: bw2regional
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer. Redistributions in binary
form must reproduce the above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other materials provided
with the distribution.Neither the name of ETH Zurich nor the names of its contributors may be used
to endorse or promote products derived from this software without specific
prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: # Brightway2 regionalized LCAThis package provides a regionalized LCA calculations for the [Brightway2 life cycle assessment framework](https://brightwaylca.org). [Online documentation](https://brightway2-regional.readthedocs.io/) is available, and the source code is hosted on [Bitucket](https://bitbucket.org/cmutel/brightway2-regional).## ContributorsChris Mutel (https://chris.mutel.org/)Estelle LouineauPlatform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Visualization
Description-Content-Type: text/markdown
Package: bw2search
All rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, thislist of conditions and the following disclaimer. Redistributions in binaryform must reproduce the above copyright notice, this list of conditions and thefollowing disclaimer in the documentation and/or other materials providedwith the distribution.Neither the name of ETH Zürich nor the names of its contributors may be usedto endorse or promote products derived from this software without specificprior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: Brightway2 Whoosh searches==========================This package provides database search functionality based on the `Whoosh search library <https://pypi.python.org/pypi/Whoosh/>`_. It is part of the `Brightway2 LCA framework <http://brightwaylca.org>`_. `Online documentation <https://brightway2.readthedocs.org/en/latest/>`_ is available, and the source code is hosted on `Bitbucket <https://bitbucket.org/cmutel/brightway2-whoosh>`_.Platform: UNKNOWNClassifier: Intended Audience :: End Users/DesktopClassifier: Intended Audience :: DevelopersClassifier: Intended Audience :: Science/ResearchClassifier: License :: OSI Approved :: BSD LicenseClassifier: Operating System :: MacOS :: MacOS XClassifier: Operating System :: Microsoft :: WindowsClassifier: Operating System :: POSIXClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 2 :: OnlyClassifier: Topic :: Scientific/Engineering :: Information Analysis
Package: bw2simple
All rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, thislist of conditions and the following disclaimer. Redistributions in binaryform must reproduce the above copyright notice, this list of conditions and thefollowing disclaimer in the documentation and/or other materials providedwith the distribution.Neither the name of ETH Zürich nor the names of its contributors may be usedto endorse or promote products derived from this software without specificprior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: Brightway2 simple proxies=========================Simple proxies to make command-line life with Brightway2 objects a bit easier.* Introduction video: https://www.youtube.com/watch?v=n0UN9nj_mag* Documentation: http://brightway2-simple.readthedocs.org/en/latest/* Source code: https://bitbucket.org/cmutel/brightway2-simplePlatform: UNKNOWNClassifier: Development Status :: 4 - BetaClassifier: Intended Audience :: End Users/DesktopClassifier: Intended Audience :: DevelopersClassifier: Intended Audience :: Science/ResearchClassifier: License :: OSI Approved :: BSD LicenseClassifier: Operating System :: MacOS :: MacOS XClassifier: Operating System :: Microsoft :: WindowsClassifier: Operating System :: POSIXClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 2 :: OnlyClassifier: Topic :: Scientific/Engineering :: Information Analysis