Saravanan666/pypi-org huggingface dataset:
Package: base-emoji
Encode everything in Emojis! 🙃BaseEmoji is a binary-to-emoji encoding scheme that represents binary data in a subset of the Unicode Emoji symbols, designed for triggering senior programmers effortlessly. BaseEmoji is heavily influenced by my frustration towards my tech lead that always shares data (base64 encoded) with me.But why?MOCKERY!WHY NOT!Base64 is not the best scheme to represent and transmit (mostly binary) data in a human-readable way. ¯\_(ツ)_/¯FeaturesBasic encode/decode operations.[TODO] Different flavors based on subset of the Unicode Emoji symbols.[Contribute] ツ.InstallationYou can install the package by issuing the following command:pip install base-emojiYou can also clone this project using git:git clone https://github.com/amoallim15/base-emoji.gitUsage exampleBasic usage looks like:$ baseemoji 'Hello world!'
> 😀😄😋😪😦😫😫😌😁😛😞😆😄😨😌😈😟😦
$ baseemoji -d '😀😄😋😪😦😫😫😌😁😛😞😆😄😨😌😈😟😦'
> Hello world!Release History0.0.2Initial implementation with a default flavor of base {55}.AboutAli Moallim –amoallim15@gmail.comContributingBug reports and pull requests are welcome on GitHub athttps://github.com/amoallim15/base-emoji.
I’m also available for questions, feel free to get in touch.LicenseThe package is available as open source under the terms of theMIT License.
Package: base-flask-structure
Base Flask StructureEasily include basic functions on your apps.What Is?A collection of basic modules needed for almost every flask application.Settings ModuleThis module contains a way to load a .env file and set different environment vars useful during the app runtime..env fileThis file should contain those environment variables which are going to be declared on the Settings class.Database ModuleThis module contains an abstract class which uses SQLAlchemy to establish connection to a database.How to install?Can be easily installed via pip.pip install base_flask_structureHow to use?from bfs.config import Settings
from bfs.database import AbstractDataBase

settings = Settings()  # Calls singleton class Settings

class DataBase(AbstractDataBase):
    def init_db(self):
        """
        Implements init_db method to initialize 
        the database and create all the tables.
        """
        self.Base.metadata.create_all(bind=self.engine)Version1.0.0
Package: baseflow
baseflowAn open-source Python package for baseflow separation 🔥⚡  UsageInstallpipinstallbaseflowExampleimportbaseflowQ,date=baseflow.load_streamflow(baseflow.example)b,KGEs=baseflow.separation(Q,date,area=276)print(f'Best Method:{b.dtype.names[KGEs.argmax()]}')Project StructureThe directory structure of baseflow looks like this:├── methods                 <- implements for 12 baseflow separation methods
│
├── recession_analysis      <- tools for estimating recession coefficiency
│
├── param_estimate          <- backward and calibration approaches to estimate other parameters
│
├── comparison              <- an evaluation criterion to comparison different methods
│
├── requirements.txt        <- File for installing baseflow dependencies
│
└── README.md📌  TodoNolinear reservoir assumptionImplement the nolinear reservoir assumption from thepaperEmploy a time-varing recession coefficiency for baseflow separationApplicable to other time scalesThe current version only applies to the daily scaleThe package needs to be updated to support hourly baseflow separation🚀  PublicationsThe following articles detail the 12 baseflow separation methods and their evaluation criterion.Xie, J., Liu, X., Wang, K., Yang, T., Liang, K., & Liu, C. (2020). Evaluation of typical methods for baseflow separation in the contiguous United States. Journal of Hydrology, 583, 124628.https://doi.org/10.1016/j.jhydrol.2020.124628
Package: baseframe
Reusable styles and templates for HasGeek projects. Setup instructions:python setup.py installYou’ll need this boilerplate in your code to use it:from flask import Flask
from baseframe import baseframe, assets, Version

version = Version('0.1.0')  # Insert your app's version number here
app = Flask(__name__, instance_relative_config=True)

# Declare your app's assets (with .js and .css suffixes)
# Filenames are relative to your app's static folder
assets['myapp.js'][version] = 'js/myapp.js'
assets['myapp.css'][version] = 'css/myapp.css'

# Initialize baseframe with required JS/CSS assets
# The 'baseframe' requirement is optional: it gives you the default UI
baseframe.init_app(app, requires=['baseframe', 'myapp'])Baseframe is BSD-licensed, but is built on top of Twitter Bootstrap 3.0
and bundles various JavaScript libraries which use BSD, MIT and Apache.
Package: baseframer
# BaseMatics ToolsThis is a Tools for basematic applications… [Python Packaging User
Guide][packaging guide]’s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].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][src].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 using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. 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.[packaging guide]:https://packaging.python.org[distribution tutorial]:https://packaging.python.org/en/latest/distributing.html[src]:https://github.com/pypa/sampleproject[rst]:http://docutils.sourceforge.net/rst.html[md]:https://tools.ietf.org/html/rfc7764#section-3.5“CommonMark variant”
[md use]:https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
Package: basel
Basel LibraryBasel Library is a powerful tool designed for calculating, reporting, and analyzing the architecture of a project.Key ConceptsAbstraction: Level of definition vs implementation inside a component.Stability: Level of incoming and outgoing dependencies that a component has.InstallationpipinstallbaselReportsAbstract/Instability and Component Relationship reports are the main data you can obtain from an architecture. To generate each one, you can use the report and rel options.Abstraction/Stability (AE) Reportbasel report --path ./path/to/projectOutput:Component                                   I     A     E
----------------------------------------  ----  ----  ----
path/to/project/module1                  0.75   0.2   0.05
path/to/project/module2                     1   0.8   0.8
path/to/project/module3                   0.5     1   0.5
----------------------------------------  ----  ----  ----
Mean                                     0.75  0.67  0.45Component Relationship (CRel) ReportThis report uses a binary matrix, where 1 represents a relation, and 0 does not. All components are assigned to an index. Check the legend below the report to identify each component.basel rel --path ./path/to/projectOutput:Components    1    2    3  
------------  ---  ---  ---
           1    0    1    0  
           2    0    0    1  
           3    0    0    0  

Labels:
1: path/to/project/module1
2: path/to/project/module2
3: path/to/project/module3FormattingTo define a format use the--formator the abbreviation-fmt.FormatReportsDescriptionbasicAE, CRelBasic and default formathtmlAE, CRelHTML formatmean_iAEOnly Instability Meanmean_aAEOnly Abstraction Meanmean_eAEOnly Error MeanmeanAEOnly Error MeanumlCRelUML codeExcludingYou can exclude components in your project, which can be helpful to define boundaries. To exclude, you can use the-eor--excludeargument.FilteringIs posible that the report results are very long, to get your desired components you can use the-for--filterarguments.ContributingWe welcome contributions! If you'd like to contribute to Basel, please follow these guidelines:Fork the repository.Create a new branch for your feature or bug fix.Make your changes and commit them with clear messages.Submit a pull request.Thank you for your contribution!ContactIf you have any questions or suggestions, feel free to insert new issue.LicenseThis project is licensed under theMIT License.
Package: baselib
base_common_lib常用的基础通用Lib集合快速入门安装pipinstallbaselib【模块】log创建日志文件frombaselib.logimportfile_logger# 生成 logger 对象，默认自定义了日期格式，以及按天做日志分割logger=file_logger("文件路径+名称")logger.info("info msg")logger.debug("debug msg")【模块】jsonjson文件读写，更新frombaselib.jsonimportJsonFile# 获取json格式文件，当读取异常时返回空的dictdata=JsonFile.read("文件路径+名称")# 写入json格式文件JsonFile.write("文件路径+名称",data)# 直接更新文件，不需要先调用readJsonFile.update("文件路径+名称",{"1":2})【模块】time日期段计算 period （简化datetime的调用）frombaselib.timeimportPeriod# 获取近一个小时的起止时间start_time,end_time=Period.get_recent_hour(1)# 获取当前时间now=Period.now()# 将当前时间转换格式now_str=Period.formate_datetime(now)【模块】system执行系统命令，并获取返回结果，可以设置是否后台执行，超时时间frombaselibimportsystem# 执行命令行命令system.run_cmd("pwd")# 可以设置是否后台执行，超时时间等system.run_cmd("ping 8.8.8.8",deamon=False,timeout=2)创建目录(多级目录，安全创建)，不存在时创建，存在时跳过，不会报错frombaselibimportsystemsystem.mkdirs("/xxx/yyy/zzz")检查文件是否存在frombaselibimportsystemsystem.check_file("xxxx/xxx")# 返回检查结果： File， Directory， NotExists【模块】qywx发送企业微信机器人消息frombaselib.qywximportQyWechatkey="xxxxxxx"# robot keyrobot=QyWechat(key=key,is_ssl=True,debug=True)robot.send_markdown(msg="# Hello world\n> msg from robot",page_type=robot.EnumPageType.SPLIT_BY_LINES)
Package: baselibs
# 通用基础库版本: v0.1.5修改了splitset方法，可用于拆分数据集增加 split_dataframe方法，可对DataFrame进行拆分数据集；增加 分层抽取方法: data_split, save_data_split版本: v0.1.4修改了TimeCount类版本: v0.1.1可对目录下的文件进行以下批量处理：清除空格 空行 按句子分行；删除空文件，找到后改名（改为"原文件名.del") 或者直接删除删除重复的文件:   根据文件的MD5判断文件是否相同，找到后改名（原文件.same)或者直接删除批量重命名:    可按序号进行重命名，默认从1开始，文件名会自动在前面补0，例如"0001.txt"可统计文本文件的行数  [2019/1/18 添加]对数据进行检查；对数据重复数据检查并删除；对数据进行随机抽样；处理参数可以自定义顺序，
Package: baselime-opentelemetry
Python Baselime OpenTelemetry SDKInstrument your Python applications with OpenTelemetry and send the traces toBaselimeGetting StartedCheck out thedocumentation.Examplepoetryaddbaselime-opentelemetryBASELIME_API_KEY=<YOUR_API_KEY>poetryrunopentelemetry-instrumentpythonmyapp.pyLicense© Baselime Limited, 2023Distributed under MIT License (The MIT License).SeeLICENSEfor more information.
Package: baseline
This tool streamlines creation and maintenance of tests which compare string
output against a baseline. It offers a mechanism to compare a string against
a baselined copy and update the baselined copy to match the new value when a
mismatch occurs. The update process includes a manual step to facilitate a
review of the change before acceptance. The tool uses multi-line string format
for string baselines to improve readability for human review.Quick StartCreate an empty baseline with a triple quoted multi-line string. Place
the ending triple quote on a separate line and indent it to the level
you wish the string baseline update to be indented to. Add a compare of
the string being tested to the baseline string. Then save the file asfox.py:frombaselineimportBaselineexpected=Baseline("""
    """)test_string="""THE QUICK BROWN FOX
    JUMPS
OVER THE LAZY DOG."""asserttest_string==expectedRunfox.pyand observe that theassertraises an exception since
the strings are not equal.  Because the comparison failed, the tool located
the triple quoted baseline string in the source file and updated it with the
mis-compared value. When the interpreter exited, the tool saved the updated
source file but changed the file name tofox.py.update:frombaselineimportBaselineexpected=Baseline("""
    THE QUICK BROWN FOX
        JUMPS
    OVER THE LAZY DOG.
    """)test_string="""THE QUICK BROWN FOX
    JUMPS
OVER THE LAZY DOG."""asserttest_string==expectedAfter reviewing the change with your favorite file differencing tool,
accept the change by either manually overwriting the original file or use
thebaselinecommand line tool to scan the directory for updated
scripts:$python-mbaseline*Foundbaselineupdatesfor:fox.pyHit[ENTER]toaccept,[Ctrl-C]tocancelPressingEntercauses the tool to overwrite the scripts with
the new baseline updates and remove the temporary.py.updatefiles.Runfox.pyagain and observe theassertdoes not raise an exception
nor is a copy of the source file update generated. If in the future the test
value changes, theassertraises an exception and causes a new source file
update to be generated. Simply repeat the review and acceptance step and you
are back in business!
Package: baseline-builder
Baseline BuilderPython-based tooling for generatingBaseline packages, for streamlining package building of multiple clients. Designed for easier CI/CD integration with Python 3.Features implemented:Resolves local files such as scripts, packages and images to Baseline packagingScans in same directory as invocation scriptCalculates MD5 for scripts and packagesDetermines Team ID for local packagesEasy imports for chaining into larger CI/CD workflowsValidates existing packages:ChecksLogicBaseline Builder works by taking configuration files for Baseline, and generating a package for deployment. If scripts, packages or images are declared in the file, Baseline Builder will attempt to resolve them and embed inside the package.See Baseline's documentation on how to configure:Baseline WikiIf an mobileconfig is provided as input, a resolved version will be written next to the package.As the mobileconfig method is meant to be used, no BaselineConfig.plist is embedded in the package.Example configuration can be found in theSamplesdirectory. Below is pulled from RIPEDA Engineering configuration:<key>Packages</key><array><dict><key>DisplayName</key><string>Printer</string><key>PackagePath</key><string>Assets/Packages/Printer.pkg</string><key>Icon</key><string>Assets/Icons/Printer.png</string></dict></array>The project will attempt to resolve thePackagePathandIconkeys through scanning the local directory:Baseline Builder Directory:
- client.plist
- Assets:
  - Packages:
    - Printer.pkg
  - Icons:
    - Printer.pngInstallationpip3 install baseline-builderUsageBuildingimportbaselinebaseline_obj=baseline.BaselineBuilder(configuration_file="ripeda.plist",identifier="com.ripeda.baseline.engineering",version="1.0.0",output="RIPEDA Baseline.pkg")baseline_obj.build()print("Package built successfully")After a build is complete, optional.validate_pkg()can be invoked to decompress and validate the package contents automatically.Validating existing packages via command lineFor quick validation of existing packages, the-v/--validateflag can be used to decompress and validate the package contents automatically.
If the package lacks a BaselineConfig.plist, a mobileconfig can be provided to validate against.# Validate package with mobileconfigpython3baseline.py--validate"RIPEDA.pkg"ripeda.mobileconfig# Validate package without config (embedded in pkg)python3baseline.py--validate"RIPEDA.pkg"# Example Output$python3baseline.py--validateRIPEDA.pkg

Performingpost-buildvalidation...
Validatingconfigurationfile...ValidatingIcon:Zoom.icns...ValidatingInstallomatorlabel:zoom...ValidatingIcon:Chrome.icns...ValidatingInstallomatorlabel:googlechromepkg...ValidatingPackagePath:Printer.pkg...CalculatingMD5for:Printer.pkg...DeterminingTeamIDfor:Printer.pkg...ValidatingIcon:Scripts-Printer.png...ValidatingScriptPath:universal_remove_stock_apps.sh...CalculatingMD5for:universal_remove_stock_apps.sh...ValidatingIcon:Scripts-Stock-Apps.png...ValidatingScriptPath:universal_dock.sh...CalculatingMD5for:universal_dock.sh...ValidatingIcon:Scripts-Dock.png...
Configurationfileisvalid.
Post-buildvalidationcomplete.
Package: baseline-optimal
Introduction to Baseline OptimalBetween the raw data and the optimal results in machine learning projects, there is an exhausting, iterative process. We go back and forth to experiment with various combinations of feature engineering, processing methods, and models along with their hyperparameters. At the end of the day, we hope our efforts pay off.🤞 God bless data scientists. 🤞Manual experimentation is a good practice. However, you may have found that we often produce messy, repetitive code throughout the process, and it takes a long while for us to figure out that an attempt doesn't work out. Sometimes we may overcomplicate data transformation and processing to get promising but unncessary metric scores.Given these problems, thebaseline_optimalpackage automates the workflow by employingOptuna's Bayesian optimization, significantly reducing the need for manual experimentation. You provide the raw data, and the modules do the heavy lifting.InstallationYou can install thebaseline_optimalpackage and its dependencies usingpip:pipinstallbaseline_optimalAfter installation, you can import the package in Python:importbaseline_optimalDocumentationAccess the the entire documentation throughGitHub Pages.Check outbaseline_optimalmodules available and their respective documentation as well as example.ModulesTaskDocumentationExamplebaseline_optimal.class_taskclassificationLinkLinkCheck out machine learning algorithms supported and hyperparameters considered.AlgorithmSourceHyperparametersDecisionTreeClassifiersklearn.treemax_featuresmax_depthmin_samples_splitRandomForestClassifiersklearn.ensemblen_estimatorsmax_featuresmax_depthmin_samples_splitAdaBoostClassifiersklearn.ensemblen_estimatorslearning_rateXGBClassifierxgboostn_estimatorslearning_ratemax_depthWhy "Baseline" OptimalThe current version supports feature selection, missing value imputation, scaling and encoding as data transformation and processing steps. The pipeline performance is evaluated based on choices of these components along with multiple machine learning algorithms. With help of Optuna, the package gives you the optimal workflow provided the raw data.The results are "baseline" optimal because the workflow attempts only the most basic methods. No feature engineering or dimensionality reduction, so on and so forth. It aims to answer the lazy question that, "If I do nothing, how far can I get?" By using this package, if you get satisfting results then congradulations! If not, then you know where the baseline is and you might want to do better than that based on your domain knowledge.🤞 Good luck. 🤞
Package: baselog
baselogbaselogis a Python module intended to simplify and standardize logging in our Python applications, particularly Dockerized applications. It is simply a thin wrapper around the stdlibloggingmodule.Many of our codebases are containerized and have the following operational requirements:Log messages get logged to the standard error (in agreement with the12 factordesign principles)If alog_dirpath is supplied, a new log file is also created in that directory for every run of the appAll uncaught exceptions are logged as described aboveStandard timezone-aware formats for log messages and timestampsExampleIn the main file in an application,BaseLogis used to initialize both the console and file loggers.#!/usr/bin/env python3frombaselogimportBaseLogfrom.utilimportotherfunclogger=BaseLog(__package__,log_dir="/logs",console_log_level="DEBUG",file_log_level="DEBUG",)defmain():logger.info("starting a thing")otherfunc()if__name__=='__main__':main()In other files of the project you just import the standard python logging module and get a logger.#!/usr/bin/env python3importlogginglogger=logging.getLogger(__name__)defotherfunc():logger.warning("Log 'em'!")Asys.excepthookis set byBaseLog, so in the case of an uncaught exception, the exception and traceback are logged to the console and log files:2023-04-11T20:06:59+0000 - logdemo - INFO - starting a thing
2023-04-11T20:06:59+0000 - logdemo.util - WARNING - Things may be happening
2023-04-11T20:06:59+0000 - logdemo.other.funcs - INFO - Things aren't happening yet
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - uncaught exception: RuntimeError; What the heck?!
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-000: Traceback (most recent call last):
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-001:   File "<frozen runpy>", line 198, in _run_module_as_main
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-002:   File "<frozen runpy>", line 88, in _run_code
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-003:   File "/app/logdemo/__main__.py", line 21, in <module>
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-004:     main()
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-005:   File "/app/logdemo/__main__.py", line 17, in main
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-006:     whatsit()
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-007:   File "/app/logdemo/other/funcs.py", line 10, in whatsit
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-008:     raise RuntimeError("What the heck?!")
2023-04-11T20:06:59+0000 - logdemo - CRITICAL - traceback-009: RuntimeError: What the heck?!
Package: basemap
basemapPlot on map projections (with coastlines and political boundaries) usingmatplotlib.This package depends on the support packagebasemap-datawith the
basicbasemapdata assets, and optionally on the support packagebasemap-data-hireswith high-resolution data assets.InstallationPrecompiled binary wheels for Windows and GNU/Linux are available in
PyPI (architectures x86 and x64, Python 2.7 and 3.5+) and can be
installed withpip:python-mpipinstallbasemapIf you need to install from source, please visit theGitHub repositoryfor a
step-by-step description.LicenseThe library is licensed under the terms of theMITlicense (seeLICENSE). The GEOS dynamic library bundled with the package wheels
is provided under the terms of theLGPLv2.1license as given inLICENSE.geos.
Package: basemap-data
basemap-dataPlot on map projections (with coastlines and political boundaries) usingmatplotlib.This is a support package forbasemapwith the basic data assets
required bybasemapto work.InstallationThe package is available in PyPI and can be installed withpip:python-mpipinstallbasemap-dataLicenseThe land-sea mask, coastline, lake, river and political boundary data
are extracted from theGSHHGdatasets (version 2.3.6) usingGMT(5.x series) and are included under the terms of theLGPLv3+license
(seeCOPYINGandCOPYING.LESSER).The other files are included under the terms of theMITlicense. SeeLICENSE.epsgfor the EPSG file (taken from the PROJ.4 package) andLICENSE.mitfor the rest.
Package: basemap-data-hires
basemap-data-hiresPlot on map projections (with coastlines and political boundaries) usingmatplotlib.This is an optional package forbasemapwith the high-resolution
data assets.InstallationThe package is available in PyPI and can be installed withpip:python-mpipinstallbasemap-data-hiresLicenseThe land-sea mask, coastline, lake, river and political boundary data
are extracted from theGSHHGdatasets (version 2.3.6) usingGMT(5.x series) and are included under the terms of theLGPLv3+license
(seeCOPYINGandCOPYING.LESSER).