Saravanan666/pypi-org huggingface dataset:
Package: uniauth-saml2-idp
Django uniAuthuniauth-saml2-idpis an SAML2IDentity Providerbuilt on top ofPysaml2and Django.
It was born as a fork ofdjangosaml2idpproject of which very little has by now remained.Consult theOfficial Documentation at readthedocsfor usage specifications and advanced topics.SAML2 FeaturesHTTP-REDIRECT and POST bindings (signed authn request must be in HTTP-POST binding);ForceAuthn;SLO, SAML Single Logout;Signed and Encrypted assertions;AllowCreate, nameid is stored with a persistent nameid format.Implementation specific Featuresno restart is needed when add a new metadata or Service Provider Definition;Full Internazionalization support (i18n);Interactive Metadata Store definitions through the Admin Backend UI;Interactive ServiceProvider definition through the Admin Backend UI;Customizable Template and style based onAGID guidelines;MetadataStore and SP validations on save, to prevent faulty configurations in production environment;Configurable digest algorithm and salt for Computed NameID;Many configurable options, for every SP we can decide:enable/disable explicitally;signature and digest algorithms;attributes release (force a set or release what requested by sp);attribute rewrite and creation, fully configurable AttributeProcessors per SP, every aspect of attribute release can be customized from scratch;agreement screen message, availability, data consent form.Configurable log rotation through uwsgi and python logging;Importable StoredPersistentID for each user, from migrations from another IDP;An optional LDAP web manager with a configurable app (ldap_peoples) throughdjango-ldap-academia-ou-manager <https://github.com/peppelinux/django-ldap-academia-ou-manager>__;Multiple LDAPsources throughpyMultiLDAP;Multifactor Authenticationsupport, as originally available in djangosaml2idp;aacliandmdquerymanagement command (yes, inspired by Shibboleth IdP);Detailed logs.ExamplesuniAuth permit to add new metadata and register new Service Providers directly from the Admin backend interface, via Web.
SeeOfficial Documentation at readthedocsfor usage specifications and advanced topics.Every Metadata store, during creation or update, will be validated to avoid faulty configurations in production environment.Create a new SP. IfSAML_DISALLOW_UNDEFINED_SPis True this configuration is mandatory, otherwise only the sp metadata is needed, the SP configuration will be created automatically using a default configuration.Testspip install -r requirements-dev.txt
pytest tests/ -x --pdbcode coveragecoverage erase
coverage run -m pytest tests/
coverage report -mA test LDAP server is available intests/ldapd.py.
You can run it manually and test a query withldapsearch.
Unit test will runldapd.pyautomatically.python3 tests/ldapd.py

ldapsearch -H ldap://localhost:3899 -b "dc=testunical,dc=it" -x uid=mario

# auth bind
ldapsearch -H ldap://localhost:3899 -b "dc=testunical,dc=it" uid=mario -D "uid=mario,ou=people,dc=testunical,dc=it" -w cimpa12ContributeFeel free to contribute creating separate PR from dedicated branches for each feature.
Please open an Issue if you want to talk before develop, to reduce the risk to be not merged for some reason.
Package: unibot
Automation for EveryoneAuthor: Shaon MajumderUtilitiesInstallationpip install unibotFunction UsagesFunction Usages EndVersioningmajor.minor[.maintenance[.build]](example:1.4.3.5249)adoption: major.minor.patch.maintenance.status.trials_for_successThe last position0 for alpha (status)1 for beta (status)2 for release candidate3 for (final) releaseFor instance:1.2.0.1 instead of 1.2-a11.2.1.2 instead of 1.2-b2 (beta with some bug fixes)1.2.2.3 instead of 1.2-rc3 (release candidate)1.2.3.0 instead of 1.2-r (commercial distribution)1.2.3.5 instead of 1.2-r5 (commercial distribution with many bug fixes)
Package: unibox
uniboxunibox provides unified interface for common file operations.FeaturesThe package is designed to be running with python 3.10, but targets 3.8+ for compatibility:CLI:unibox resize <dir>: resizes a directory of images using eitherpilloworlibvipscustomizable size / quality / encoding (png / webp / jpeg)unibox copy <dir>: an awscli-like tool for copying files with certain suffix to a new dir, keeping the same directory structure.bypasses windows explorer so it's much faster.unibox move <dir>: likecopy, but moves insteadutils:UniLogger: uniformed logger class (logger = unibox.UniLogger(), and uselogger.info(...))UniLoader: uniformed data loader class (unibox.loads(<filename>))UniSaver: uniformed data saver class (unibox.saves(<data>, <filename>))UniTraverser: uniformed directory traverser class, with callbacks in multiple stagesUniResizer: uniformed image resizer class, with callbacks in multiple stagescallables:unibox.traverses(dir, include, exclude, relative_unix): traverse a directory using specified exclude / include extensions, and return a list of filesunibox.loads(filepath): load arbitrary data from a file into suitable formats, with automatic detection of file typesupported formats: see UniLoader class implementationunibox.saves(data, filepath): saves arbitrary data to a file, with automatic detection of file typeInstallinstall from pypi:pipinstalluniboxbuild from source:gitclonehttps://github.com/trojblue/unibox# pip install poetrypoetryinstall
poetrybuild
pipinstalldist/unibox-<versionnumber>.whl
Package: unic
unicunicis a python package that can convert various units.Conversion TargetsThe current available conversion targets are as follows.Time UnitTimeModelminute / second / milisecond → hourhour / second / milisecond → minutehour / minute / milisecond → secondhour / minute / second → milisecondDatetimeModelunixtime / unixtime+timezone → datetime.datetimeunixtime / unixtime+timezone → datetime.dateUnixtimeModelstring(yyyy-mm-dd hh:mm:ss) / string(yyyy-mm-dd hh:mm:ss)+timezone → unixtimeLength UnitMetricSystemModelTarget Metric System Unitsnm, um*, mm, cm, m, km, Mm, Gm, Tm※ um represents ㎛.The target metric system units are can be converted to each other.Installingpip install unicHow toSee theUserGuide.ExampleTime UnitTimeModelimportunicconvert_model=unic.load_model("time")# Convert hour to minuteconvert_min=convert_model.convert(2,from_unit="hour",to_unit="min")DatetimeModelimportunicconvert_model=unic.load_model("datetime")# Convert to datatimeconvert_datetime=convert_model.convert(1577841753,format="datetime")# Convert to dateconvert_datetime=convert_model.convert(1577841753,format="date")UnixtimeModelimportunicconvert_model=unic.load_model("unixtime")# Specify time zoneconvert_unixtime=convert_model.convert("2023-05-12 10:15:20",tz="Asia/Tokyo")Length UnitMetricSystemModelimportunicconvert_model=unic.load_model("metric_system")# Convert cm to mconvert_min=convert_model.convert(20,from_unit="cm",to_unit="m")
Package: unicampi
Unicamp APIUma API para os dados públicos da Unicamp.InstalandoPara instalar o ambiente de desenvolvimento local:git clone https://github.com/unicampi/unicampi
make install
make serveURL default de desenvolvimento em  <http://localhost:8080>.EndpointsPara listar os endpoints disponíveis, utilize a URL base.Localmente emhttp://localhost:8080No servidor provisório emhttp://gabsurita.pythonanywhere.comAlguns exemplos de endpoins estão listados na wiki:https://github.com/gabisurita/unicampi/wiki/Exemplos-de-endpointsRessalva de ResponsabilidadeEste é um sistema independente de qualquer órgão oficial da Unicamp mantido
pela sua equipe de desenvolvimento.A Unicamp está isenta de qualquer responsabilidade relativa ao sistema.A equipe de desenvolvimento não se responsabiliza pela integridade dos dados
e pela equivalência com as páginas oficiais.
Package: unicards
A Python module for converting strings intounicode playing cards.♠ Installationpip install unicards♦ API>>> from unicards import unicard
>>> print(unicard('As'))
🂡
>>> print(unicard('Jd'))
🃋
>>> print(unicard('Tc'))
🃚
>>> print(unicard('2h'))
🂲
>>> unicard('8d', color=True)
u'\x1b[31m\U0001f0c8\x1b[39m'♥ LicenseApache License, Version 2.0
Package: unicase-cli
unicase（用例管理命令行工具）pip install -U unicase-cli>unicase --help

Usage: unicase [OPTIONS] COMMAND [ARGS]...

  UNI 测试用例管理工具

Options:
  --help  Show this message and exit.

Commands:
  config  配置测试人员、API Base Url
  create  创建 Excel 用例模板文件
  upload  上传 Excel 用例到 TAPD配置由于创建和上传用例都需要创建人信息，在使用前必须配置测试人员英文名>unicase config --help 
         
Usage: unicase config [OPTIONS]

  配置测试人员、API Base Url

Options:
  --tester TEXT    当前测试人员英文名(上传用例时需要用到)
  --base-url TEXT  当前 API Base Url
  --help           Show this message and exit.创建 Excel 用例模板文件写用例前可以先生成一个属于当前迭代的用例模板，模块中会根据所选迭代生成对应的需求、开发人员下拉选择同时也会保存对应的迭代信息到 A1 单元格（请勿修改 A1）创建的用例模板名默认为：{迭代名称}(创建人).xlsm，如果想使用其他名称可以使用 --name 参数指定>unicase create --help  

Usage: unicase create [OPTIONS]

  创建 Excel 用例模板文件

Options:
  --name TEXT  指定生成的文件路径，默认生成到当前文件夹且以迭代名称命名
  --help       Show this message and exit.上传用例上传用例包括 2 种类型的上传：--type bvt: 只上传冒烟测试用例，以 task 类型创建到 TAPD 对应迭代中，默认不加--type也是上传冒烟测试用例--type all: 上传所有测试用例，以 case 类型创建到 TAPD 测试用例模块中，并与相应的测试计划关联*用例必填项冒烟用例：一级模块用例名称用例等级（必须是 高）开发人员需求功能用例：一级模块用例名称需求注意:用例上传后会把上传后的task_id、case_id重新写入你的用例文件，方便用例有修改重新上传、更新，请勿随意删除task_id和case_id用例上传前都会校验用例的合法性，所以不用担心用例格式有问题导致上传错乱上传用例时最好不要在 Excel 中打开该文件，避免工具写入时没有写的权限（实际这里也做了异常处理，会写入新的文件名）>Usage: unicase upload [OPTIONS] FILE

  上传 Excel 用例到 TAPD

Options:
  --type [bvt|all]  用例上传类型：bvt 冒烟用例，all 全部用例
  --help            Show this message and exit.冒烟用例示例建议操作流程迭代开始——需求评审——创建测试计划——创建迭代用例——上传冒烟用例——上传所有用例——执行用例——发版——用例若有更新重新上传——关闭测试计划——用例文件归档
Package: unicat-esolang
unicat-esolangPython 3 Port of Unicat Esoteric Language created bygemdude46.
See thisSample Programs in Every Languagearticlefor a description of the language.PrerequisitesPython 3.8 or laterInstalling or UpdatingThis package has no dependencies, so it is safe to do this:pip install --user -U esocat-langHowever, if you want to install this is in virtualenv, you can do this once
you have activated the virtualenv:pip install -U esocat-langUsageUse this to run your Unicat program:unicat [-d/--debug] FILENAMEwhere:-dor--debugenables debuggingFILENAMEis the path to the Unicat programDebuggingWhenunicatis run with-dor--debug, the python debugger is entered
before each instruction. The first time, a welcome screen is displayed:Welcome to the Unicat debugger

Here are the commands:

- show_ins()           - Show instructions
- show_mem()           - Show all memory
- show_mem(start)      - Show memory address `<start>`
- show_mem(start, end) - Show memory address `<start>` to `<end>`
- c                    - Execute next instruction

Everything else is just a pdb command.
See https://docs.python.org/3/library/pdb.html for details.When the debugger is entered, the current instruction is displayed. For
example:Current instruction:
Address 0 (0o0): asgnlit 0 (0o0), 72 (0o110 = 'H')
> ...execute_instructions()
-> if it[0] == "diepgrm":ExamplesExample programs can be foundhere.
These programs are also used for unit testing the Unicat language
implementation.
Package: unicef-attachments
Django package that handles file attachments for modelsInstallationpip install unicef-attachmentsSetupAddunicef_attachmentstoINSTALLED_APPSin settings
.. code-block:: pythonINSTALLED_APPS = (…
‘unicef_attachments’,)UsageTODOContributingEnvironment SetupTo install the necessary libraries$ make installCoding StandardsSeePEP 8 Style Guide for Python Codefor complete details on the coding standards.To run checks on the code to ensure code is in compliance$ make lintTestingTesting is important and tests are located intests/directory and can be run with;$ make testCoverage report is viewable inbuild/coveragedirectory, and can be generated with;Project LinksContinuous Integration -https://circleci.com/gh/unicef/unicef-attachments/tree/developSource Code -https://github.com/unicef/unicef-attachments
Package: unicef-djangolib
Installationpipinstallunicef-djangolibSetupAddunicef_djangolibtoINSTALLED_APPSin settingsINSTALLED_APPS=[...'unicef_djangolib',]Configure the html elements for display:NAME=os.environ.get('NAME','default_name')VERSION=os.environ.get('VERSION','default_version')BACKGROUND_COLOR=os.environ.get('HEADER_BG_COLOR','#42515A')HEADER_RIGHT_LOGO=os.environ.get('HEADER_RIGHT_LOGO',"/static/images/default_right.svg")HEADER_LEFT_LOGO=os.environ.get('HEADER_LEFT_LOGO',"/static/images/default_left.svg")FOOTER_LOGO=os.environ.get('FOOTER_LOGO',"/static/images/default_footer_logo.png")UsageTODOContributingEnvironment SetupTo install the necessary libraries$makeinstallCoding StandardsSeePEP 8 Style Guide for Python Codefor complete details on the coding standards.To run checks on the code to ensure code is in compliance$makelintTestingTesting is important and tests are located intests/directory and can be run with;$maketestCoverage report is viewable inbuild/coveragedirectory, and can be generated with;Project LinksContinuous Integration -https://circleci.com/gh/unicef/unicef-djangolib/tree/developSource Code -https://github.com/unicef/unicef-djangolibLinksStableDevelopmentSource Codehttps://github.com/unicef/unicef-djangolibIssue trackerhttps://github.com/unicef/unicef-djangolib/issuesCompatibility Matrix
Package: unicef-notification
UNICEF NotificationNotification is a library that provides handles sending of notifications.Installationpip install unicef-notificationSetupAdd unicef_notification to INSTALLED_APPS in settings:INSTALLED_APPS = [
    ...
    'post_office',
    'unicef_notification',
]Add POST_OFFICE configuration to settings:POST_OFFICE = {
    'DEFAULT_PRIORITY': 'now',
    'BACKENDS': {
        'default': 'djcelery_email.backends.CeleryEmailBackend'
        }
}Update TEMPLATES in settings by adding EmailTemplateLoader and marking APP_DIRS as False:TEMPLATES = [
    ...
    'APP_DIRS': False,  # False because we set loaders manually below
    'OPTIONS': {
    'loaders': [
        'django.template.loaders.app_directories.Loader',
        'unicef_notification.loaders.EmailTemplateLoader',
    ],
    ...
    ]OptionalIf you want to override the notification template directory to be used:UNICEF_NOTIFICATION_TEMPLATE_DIR = 'notifications'This is the directory where notifcation templates are to be placed in your applications.
These are loaded with theupload_notificationsmanagement command.If you want to override the email template prefix:UNICEF_NOTIFICATION_EMAIL_TEMPLATE_PREFIX = 'email-templates/'UsageCreate notification template in definedUNICEF_NOTIFICATION_TEMPLATE_DIRfrom setup:name = "<unique name for notification">
defaults = {
    "description": "Sample notification",
    "subject": "Subject of notification",
    "content": "Content of notification",
    "html_content": "Notificaton content in HTML format",
}Update the notifications:python manage.py update_notificationsSend notification with template:from unicef_notification.utils import send_notification_with_template

context = {}
send_notification_with_template(
    ["to@example.com"],
    "<name-of-template>",
    context,
)Send notification without a template:from unicef_notification.utils import send_notification

send_notification(
    ["to@example.com"],
    subject="Subject of notification",
    content="Content of notification",
    html_content="Notification content in HTML format",
)ContributingEnvironment SetupTo install the necessary libraries:$ make installCoding StandardsSeePEP 8 Style Guide for Python Codefor complete details on the coding standards.To run checks on the code to ensure code is in compliance:$ make lintTestingTesting is important and tests are located intests/directory and can be run with:$ make testCoverage report is viewable inbuild/coveragedirectory, and can be generated withProject LinksContinuos Integration -https://circleci.com/gh/unicef/unicef-notification/tree/developSource Code -https://github.com/unicef/unicef-notification
Package: unicef-rest-export
Django Rest Framework data export package that handles export/rendering to JSON, CSV, XLS, and HTMLInstallationpipinstallunicef-rest-exportSetupAddunicef_rest_exporttoINSTALLED_APPSin settingsINSTALLED_APPS=[...'unicef_rest_export',]UsageA sample model view;classAuthorView(ExportView):queryset=Author.objects.all()serializer_class=serializers.AuthorSerializerA sample model viewset;classAuthorViewSet(ExportViewSet):queryset=Author.objects.all()serializer_class=serializers.AuthorSerializerTo override or limit the renderers allowed, addEXPORT_RENDERERSto settings.
The current default is;EXPORT_RENDERERS=("unicef_rest_export.renderers.ExportHTMLRenderer","unicef_rest_export.renderers.ExportCSVRenderer","unicef_rest_export.renderers.ExportJSONRenderer","unicef_rest_export.renderers.ExportExcelRenderer",)The following is a sample of transforming data;classAuthorTransformView(ExportView):queryset=Author.objects.all()serializer_class=serializers.AuthorSerializerdeftransform_books(self,data):return[d["name"]fordindata]deftransform_dataset(self,dataset):dataset.add_formatter("books",self.transform_books)returndatasetContributingEnvironment SetupTo install the necessary libraries$makeinstallCoding StandardsSee [PEP 8 Style Guide for Python Code](https://www.python.org/dev/peps/pep-0008/) for complete details on the coding standards.To run checks on the code to ensure code is in compliance$makelintTestingTesting is important and tests are located intests/directory and can be run with;$maketestCoverage report is viewable inbuild/coveragedirectory, and can be generated with;Project LinksContinuos Integration -https://circleci.com/gh/unicef/unicef-rest-export/tree/developSource Code -https://github.com/unicef/unicef-rest-exportThanks to[django-rest-pandas](https://github.com/wq/django-rest-pandas) as a lot of the code was borrowed from that package.
Package: unicef-restlib
Django package that handles includes rest framework extrasInstallationpipinstallunicef-restlibSetupAddunicef_restlibtoINSTALLED_APPSin settingsINSTALLED_APPS=[...'unicef_restlib',]UsageTODOContributingEnvironment SetupTo install the necessary libraries$makeinstallCoding StandardsSeePEP 8 Style Guide for Python Codefor complete details on the coding standards.To run checks on the code to ensure code is in compliance$makelintTestingTesting is important and tests are located intests/directory and can be run with;$maketestCoverage report is viewable inbuild/coveragedirectory, and can be generated with;Project LinksContinuous Integration -https://circleci.com/gh/unicef/unicef-restlib/tree/developSource Code -https://github.com/unicef/unicef-restlib
Package: unicef-snapshot
UNICEF SnapshotSnapshot is a library that provides snapshot of data changes on django model.Installationpip install unicef-snapshotSetupAddunicef_snapshottoINSTALLED_APPSinsettings.pyINSTALLED_APPS = […
‘unicef_snapshot’,]UsageUseunicef-snapshotin serializersfrom unicef_snapshot.serializers import SnapshotModelSerializerclass ExampleSerializer(SnapshotModelSerializer):…ContributingEnvironment SetupTo install the necessary libraries$ make installCoding StandardsSeePEP 8 Style Guide for Python Codefor complete details on the coding standards.To run checks on the code to ensure code is in compliance$ make lintTestingTesting is important and tests are located intests/directory and can be run with;$ make testCoverage report is viewable inbuild/coveragedirectory, and can be generated with;Project LinksContinuos Integration -https://circleci.com/gh/unicef/unicef-snapshot/tree/developSource Code -https://github.com/unicef/unicef-snapshot
Package: unicell
UniCellUniCell is a universal cellular segmentation tool for multi-modality microscopy images. It has three main featuresIt works for various microscopy images, especially for the RGB images, e.g., bone marrow slides.It works for various image format (e.g., png, bmp, jpg, tif, tiff) without format converting and does not require users to manually select segmentation models and image channels.The inference speed is fast (~0.07s for 256x256 image and ~0.33s for 512x512 image on NVIDAI 2080Ti).Installationpipinstallgit+https://github.com/bowang-lab/unicell.gitTrain UniCellunicell_train-dir<pathtotrainingset>--model_folder<unicell>--batch_size32Training set folder structuretraining_set/|----images|--------img1.png|--------img2.jpg|--------img3.bmp|--------img4.tif|--------img5.tiff|----labels|--------img1_label.tiff|--------img2_label.tiff|--------img3_label.tiff|--------img4_label.tiff|--------img5_label.tiffUniCell does not have limitation on the image format. The corresponding labels should have a suffix_label.tiff.Inferenceunicell_predict-i<inputpath>-o<outputpath>--pretrain_modelunicell--contour_overlayCompute metricsWe provide a interface to compute various metrics for cell segmentation results, including F1 score, precision, recall, the number of missing cells, the number of false-positive cells, and dicecom_metric-g<pathtogroundtruthfolder>-s<pathtosegmentationfolder>-thre0.50.70.9-o<pathtosavefolder>-n<csvname>Graphical User Interface (GUI)We develop a GUI plugin based onnapari, which enables users who may not have coding experience to analyze their microscopy images visually in real time.Install GUI: pip install napari-unicellOnline demoWe deploy an online demo on huggingface, which enables users to directly upload the cell images to get the segmentation results.Remark: huggingface provides 2 free CPU for the deployment. So the inference can only use CPU, which is a little bit slow for large images (e.g., 1000x1000). We recommend using the command line interface or GUI  to analyze large images if GPU is available on your local desktop.
Package: unice.mosaique
ContentsChange history1.0 (xxxx-xx-xx)Detailed DocumentationContributorsDownloadCode repository:http://svn.somewhere.com/…Questions and comments to somemailing_listReport bugs athttp://bug.somewhere.com/..Change historyChangelog1.0 (xxxx-xx-xx)Created recipe with ZopeSkel
[“”]Detailed DocumentationIntroductionThis is a full-blown functional test. The emphasis here is on testing what
the user may input and see, and the system is largely tested as a black box.
We use PloneTestCase to set up this test as well, so we have a full Plone site
to play with. Wecaninspect the state of the portal, e.g. using
self.portal and self.folder, but it is often frowned upon since you are not
treating the system as a black box. Also, if you, for example, log in or set
roles using calls like self.setRoles(), these are not reflected in the test
browser, which runs as a separate session.Being a doctest, we can tell a story here.First, we must perform some setup. We use the testbrowser that is shipped
with Five, as this provides proper Zope 2 integration. Most of the
documentation, though, is in the underlying zope.testbrower package.>>> from Products.Five.testbrowser import Browser
>>> browser = Browser()
>>> portal_url = self.portal.absolute_url()The following is useful when writing and debugging testbrowser tests. It lets
us see all error messages in the error_log.>>> self.portal.error_log._ignored_exceptions = ()With that in place, we can go to the portal front page and log in. We will
do this using the default user from PloneTestCase:>>> from Products.PloneTestCase.setup import portal_owner, default_passwordBecause add-on themes or products may remove or hide the login portlet, this test will use the login form that comes with plone.>>> browser.open(portal_url + '/login_form')
>>> browser.getControl(name='__ac_name').value = portal_owner
>>> browser.getControl(name='__ac_password').value = default_password
>>> browser.getControl(name='submit').click()Here, we set the value of the fields on the login form and then simulate a
submit click.  We then ensure that we get the friendly logged-in message:>>> "You are now logged in" in browser.contents
TrueFinally, let’s return to the front page of our site before continuing>>> browser.open(portal_url)-- extra stuff goes here --Contributors“”, AuthorDownload