Saravanan666/pypi-org huggingface dataset:
Package: conflook
ConflookA command line utiltiy for inspecting hard-to-read project config files such as json, yaml, and toml.UsageUsage: conflook [OPTIONS] FILE [KEYPATH]

  Show summarised structure or value at keypath.

Options:
  -v, --version        Show the version and exit.
  -h, --help           Show this message and exit.
  -l, --limit INTEGER  Default 10. Truncate output if more than `limit` lines.
                       If 0, there is no limit.Keypath is a dot separated list of keys or indicies. For example,database.ports.2would access thedatabasetable, then theportsarray within that, then the 3rd item (at index 2) within that array. A consequence of this notation is that not all possible keys can be addressed.If the value at the end of a valid keypath is a map-like object then it is shown as a list of keys followed by their type followed by a preview of their contents.For example,database, Table(4)
server         String(11) 192.168.1.1
ports          Array(3)   [8001, 8001, 8002]
connection_max Integer    5000
enabled        bool       TrueA content preview attempts to be close to the real text content in the configuration file. For example, a YAML!!binaryentry will not be decoded. Control sequences (eg newlines) in strings will be escaped.Note that if no matching key is found in a keypath then conflook will showThe shortest key for which the given key is a prefix, orThe closest matching key as determined by difflibFor example,conflook eg.toml data.protsGivesdatabase.ports, Array(3)
[8001, 8001, 8002]InstallAvaliable on PyPI.Install with PIP.pip install conflookRun from command lineconflook --helpOR, Add as development dependancy to PDM project.pdm add --dev conflookRun frompdmpdm run conflook --helpDevelopDownload this repositorygit clone ....Install PDM.
Use PDM to install python dependancies withpdm sync.PDM will keep the versions of 3rd party libraries consistent withpdm.lock. The 3rd party libraries which this project depend on are listed inpyproject.tomlalong with other project settings used by thePyPIand exposing a command when installed.Enable pre-commit.
Will run automatic checks for eachgit commit, as described in.pre-commit-config.yaml. Might need to runpdm run pre-commit installto setup.Pylintwill check for the things specified inpylintrc.toml. Sometimes these checks can be ignored with a# pylint: disable=comment if they are too pedantic.PDM should install an editable package. Make sure to putpdm runbefore any commands to make sure the correct Python interpreter is being used and the projects dependancies are avaliable. For example,pdm run conflook ...will run this utility,pdm run pre-commit runwill manually run pre-commit checks, andpdm run pythonwill start an interactive python session.The foldereg/contains example files.TODOsearchgrep friendlyline numbersdon't truncatestatsextract sub object or array to file (or is this out of scope?)
Package: conflow
Project in early beta. Work in progress!Conflow organizes layered configurations for Python applications.
Conflow allows you to use default settings and extend or override it
via merging settings from different sources:
- Python dictionaries
- Files: yaml, json, ini
- Environment variablesQuickstartpipinstallconflowUsageimportosfromconflowimportConfig,from_envDEFAULT_SETTINGS={'db':{'master':{'host':'localhost','port':5432,},'slave':{'host':'localhost','port':5433,}}}config=Config().merge(DEFAULT_SETTINGS)assertconfig.db.master.host()=='localhost'os.environ['APP_DB__MASTER__HOST']='remote_host'env_settings=from_env('APP')config=Config().merge(DEFAULT_SETTINGS).merge(env_settings)assertconfig.db.master.host()=='remote_host'MotivationIf you are tired of making local, test, stage and production profiles in each project, then Conflow is for you.
Conflow allows you to fetch and merge configs from different places - yaml files, environment variables etc.
Package: conflowgen
ConFlowGenTheContainerFlowGenerator - a Python application to generate container flows typical for seaport 
container terminals.Please check in thebackground section of the documentationfirst whether ConFlowGen is the right tool for your purpose.If you wish to use the module conflowgen, you can install the latest version using pip from the command line interface
(CLI) of your choice (e.g., bash, PowerShell, or CMD).pipinstallconflowgenIn addition, conflowgen is also available on conda-forge.condainstall-cconda-forgeconflowgenIf you want to download all examples including simulation models, prepared SQLite databases, and Excel tables, it is best to obtain a full copy of this repository.
Please ensure thatgit-lfsis installed and properly set up to download the larger files.
Then, please execute the following lines in your CLI:gitclonehttps://github.com/1kastner/conflowgencdconflowgen
pipinstall.After you have installed the module, you are ready to define your own scenarios and generate the data.importconflowgendatabase_chooser=conflowgen.DatabaseChooser()database_chooser.create_new_sqlite_database("new_example.sqlite")...The next steps are describedin the documentation.If you use ConFlowGen and decide to publish your results, we would be glad if you mention our work as defined athttps://conflowgen.readthedocs.io/en/latest/background.html#presentation-of-conflowgen.
Package: confluence-archiving
Confluence Archiving Python LibraryThis is a simple wrapper around the REST API which the Confluence
Archiving plugin from midori provides.You can see the documentation on that APIhereInstallationpip install confluence-archivingUsagefrommidori.archiving.clientimportArchivingClientwithArchivingClient('http://localhost:8080/confluence',('user','pass'))asclient:content_status=client.get_page_content_status(1000)Development and DeploymentSee theContribution guidelines for this projectfor details on how to make changes to this library.Testing LocallyFor now there are only some basic unit tests included. These can be run
usingpython setup.py test
Package: confluence-calendar-api
Confluence Calendar APIVersion: 0.3.0Confluence Calendar API Python WrapperAPI Calls:Get CalendarsAdd EventUsage:#!/usr/bin/python# coding: utf-8importconfluence_calendar_apiusername="<CONFLUENCE USERNAME>"password="<CONFLUENCE PASSWORD>"confluence_url="<CONFLUENCE URL>"client=confluence_calendar_api.Api(url=confluence_url,username=username,password=password)calendar=client.get_calendars(sub_calendar_id=12341)print(calendar)Install InstructionsInstall Python Packagepython-mpipinstallconfluence-calendar-apiBuild InstructionsBuild Python Packagesudochmod+x./*.py
pipinstall.
pythonsetup.pybdist_wheel--universal# Test Pypitwineupload--repository-urlhttps://test.pypi.org/legacy/dist/*--verbose-u"Username"-p"Password"# Prod Pypitwineuploaddist/*--verbose-u"Username"-p"Password"
Package: confluence-cli
confluence-cliconfluence-cli is a convenient wrapper module for python atlassian confluence original package.confluence-cli installation# Desde la raiz del repositoriopython3-mpipinstallconfluence-cliExamplesparams={"baseURL":"http://confluence:8090","user":"myuser","password":"mypass","proxies":{"http":"","https":""},"verify_ssl":False}confluence_api=ConfluenceWrapper(params)# This class method, for example, is not available in original atlassian confluence module.confluence_api.add_content_restrictions("3407893",["read","update"],group_name,"group")# This class method, for example, is not available in original atlassian confluence module.confluence_api.add_space_permissions_rpc(space_key="ds",permissions=["SETSPACEPERMISSIONS","EXPORTSPACE"],entity_name=group_name)
Package: confluence-cloud-python
Project descriptionconfluence-cloud-ashwani
confluence-cloud-ashwani is an API wrapper for Atlassian Confluence written in PythonInstallingpip install confluence-cloud-pythonUsageClient instantiationfrom sigconfluence.client import Clientclient = Client('CLIENT_ID', 'CLIENT_SECRET')OAuth 2.0 (3LO)For more information:https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/Direct the user to the authorization URL to get an authorization codeA refresh token can be returned with the access token in your initial authorization flow. To do this, add the offline_access scope to the scope parameter of the authorization URL.scope_list = ['read:confluence-space.summary', 'offline_access','read:confluence-props','read:confluence-content.all', 'read:confluence-content.summary', 'search:confluence']url = client.authorization_url('REDIRECT_URI', scope_list, 'STATE')Exchange authorization code for access tokenresponse = client.exchange_code('REDIRECT_URI', 'CODE')Set access token in the libraryclient.set_access_token('ACCESS_TOKEN')Get the cloudid for your siteresponse = client.get_resource_list()Set cloudid in the libraryclient.set_cloud_id('CLOUD_ID')Refresh tokenresponse = client.refresh_token('REFRESH_TOKEN')Find all the Confluence Spacesspaces = client.spaces.get_spaces()Find all the contentsstart=0limit=100contents_data=client.contents.get_contents('expand=body.storage&next=true&limit='+str(limit)+'&start='+str(start))contents.extend(contents_data['results'])start=limitlimit=contents_data['size']printcontents
Package: confluence-command-line
Confluence Command Line (ccl) is a suite of command line utilities
designed to make working with confluence faster and easier.Installationpip install confluence-command-lineThis will install the binaryccl, which will allow you to execute
the various confluence command line utilities.create-skeletonCreating hierarchies of pages in Confluence is time consuming and error
prone. Thecreate-skeletoncommand is a is for creating confluence
structures quickly and easily.Usingcreate-skeletonis simple: just write up your structure (with
optional content attributes) and run the tool over yourymlfile.ExampleCreate.ymlfile containing the structure you’d like to create.
You’ll have to sethost,username,api_key, andspace. Don’t have an API key? Get one here:https://id.atlassian.com/manage/api-tokens-host:<your_cloud_host>-username:<your_username>-api_key:<key>-space:<my_space_key>-page:RootAcontent:"Thisismycontent"children:-page:Child A1children:-page:Child A11-page:Child A12-page:Child A13children:-page:Child A111-page:Child A112-page:Child A113children:-page:Child A1111-page:Child A1112-page:Child A1113-page:Child A2-page:Child A3-page:RootBchildren:-page:Child B1-page:Child B2-page:Child B3Run the tool. Example usage:ccl create-skeleton myfile.ymlFeedback and ContributionsFeedback and contributions are welcome! Please open an issue or a pull
request to get in touch.
Package: confluence-exporter
Confluence exporterTable of ContentsOverviewInstallationUsageConfigurationOverviewConfluence exporter is a module and a script used to export pages from
Confluence. All the pages exported are merged in one document.Currently, only the Pdf exporter is fully functional but it is planned to
support others formats like :WordMarkdownInstallationFrom PyPI (Recommended)You can install the exporter easily with the following command or insert into
your requirements file :pip install confluence-exporterFrom sourcesIt is recommended to use a virtual environment :python -m venv venvTo install the module and the main script, simply do :pip install .For the developers, it is useful to install extra tools like :pre-commitpytestThese tools can be installed with the following command :pip install .[dev]The Git hooks can be installed with :pre-commit installThe hooks can be run manually at any time :pre-commit run --all-fileUsageThe script with required argument can be started by executing the following
command :./confluence-export my_config.yamlThe full list of arguments supported can be displayed with the following
helper :./confluence-export.exe -h
usage: confluence-export [-h] [-v] [config.yaml]

positional arguments:
  config.yaml    Configuration file

options:
  -h, --help     show this help message and exit
  -v, --verbose  Verbose modeConfigurationThe configuration file support 2 formats :YAML format(Recommended format)JSON formatIn Yaml :Server:Confluence:"https://my.confluence.server.com"Pages to export:<Space Key 1>:"Pagetitle1"<Space Key 2>:-"Pagetitle1"-"Pagetitle2"In Json :{"Server":{"Confluence":"https://my.confluence.server.com"},"Pages to export":{"<Space Key 1>":"Page title 1","<Space Key 2>":["Page title 1","Page title 2"]}}The space key can be found easily in the URL of any page :https://my_confluence_url.com/display/<Space key>/...Server configurationTheServernode will configure the URL of the Confluence server.
For the moment, only the username/token authentication is supported.
The credentials could be defined with environment variables or.envfile.ATLASSIAN_USER=<your login>
ATLASSIAN_TOKEN=<your token>In Yaml :Server:Confluence:"https://my.confluence.server.com"In Json :{"Server":{"Confluence":"https://my.confluence.server.com"}}ServerMain configuration node for server.It is a mandatory field.ConfluenceDefine the Confluence server URL to get the pages.It is a mandatory field.Pages to export configurationThePages to exportnode will configure the list of pages to export by space.
It could be one page only or a list of pages.In Yaml :Pages to export:<Space Key 1>:"Pagetitle1"<Space Key 2>:-"Pagetitle2"-"Pagetitle3"In Json :{"Pages to export":{"<Space Key 1>":"Page title 1","<Space Key 2>":["Page title 2","Page title 3"]}}Pages to exportMain configuration node for exporter.It is a mandatory field.<Space key>Define the space key that include the pages to export. The value associated
could be a string or a list of string corresponding to the pages title to
export.It is a mandatory field.
Package: confluence.md
confluence.mdPush markdown files straight to a Confluence page.What it does?confluence.mdallows you to push any markdown file to Confluence. You can create
a new page (under given parent) or update an existing one.How to install?It's as easy as:$ pip install confluence.mdHow to use it?Markdown to ConfluenceExample workflow:1. Create a new page under--parent_id:$ confluence.md --user user@name.net --token 9a8dsadsh --url https://your-domain.atlassian.net \
        create --file README.md --parent_id 182371 --title "new title" --add_meta2. The page is created and the file is decorated with metadata:$ head -n 3 markdown.md
---
confluence-url: https://your-domain.atlassian.net/wiki/spaces/SP/pages/18237182/new+title
---3. Performing an update does not require providing--page_idand--url:$ confluence.md --user user@name.net --token 9a8dsadsh update --file README.mdDoing an update with--page_idand--urlis still possible.Consider adding useful--add_infooption.To create Atlassian API Token go toapi-tokens.Actions:updateUpdates page content based on givenpage_idor metadata in Markdown filecreateCreates new page under givenparent_idpositional arguments:{update,create}Action to runoptional arguments:-h,--helpshow this help message and exit--file FILEinput markdown file to process--add_metaadds metadata to .md file for easy editing--add_infoadds info panelautomatic contentdo not edit on top of the page--add_labelADD_LABELadds label to page-v,--verboseverbose mode-q,--quietquiet moderequired auth parameters:-uUSER,--userUSERAtlassian username/email-tTOKEN,--tokenTOKENAtlassian API token-lURL,--urlURLAtlassian instance URLcreate page parameters:--parent_idPARENT_IDdefine parent page id while creating a new page--titleTITLEdefine page title while creating a new page--overwriteforce overwrite if page with this title already existsupdate page arguments:--page_idPAGE_IDdefine (or override) page id while updating a page
Package: confluence-pusher
confluence-pusherA tool to convert and upload markdown documents into Atlassian Confluence using theAtlassian Python API.How it worksFile conversionWarning:Confluence can't create two documents with the same name in the same space, for example: folder /Build and file named build.mdThe source folder is traversed for markdown files. The folder and document structures are replicated in Confluence. The document conversion is performed using Pandoc with thepandoc-confluence-writercustom filter:LocalConfluenceRoot FolderRoot DocumentREADME.mdRoot Document Contentothers.mdSub-Page under Root DocumentSub-DirectorySection DocumentThe document names are renamed to reflect the H1 markdown header if available.Before you beginConfigure Confluence APIhttps://id.atlassian.com/manage/api-tokenshttps://confluence.atlassian.com/cloud/api-tokens-938839638.html
Package: confluencer
Copyright ©  2015 1&1 Group <git@1and1.com>Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: confluence-rest-library
Confluence Python LibraryThis is a simple wrapper around the REST API which the Confluence
provides. Consider the API to be stable as of v1.0.0 (now released)c.f.endpoints.mdfor a list of endpoints and whether this library
supports them yet. Please do send pull requests if you want an endpoint
that isn’t covered!Installationpip install confluence-rest-libraryUsagefromconfluence.clientimportConfluencewithConfluence('https://site:8080/confluence',('user','pass'))asc:pages=c.search('ID=1')Development and DeploymentSee theContribution guidelines for this projectfor details on how
to make changes to this library.Testing LocallyThere are two sets of tests included. A suite of unit tests that verify the
models can be built correctly and a suite of integration tests that run against
a local instance of confluence. The unit tests can be run by simply invoking:
.. code:python setup.py test --addopts "tests"The integration tests are more complex and require the developer to take the following steps:Install theAtlassian SDKRunatlas-run-standalone--productconfluence--version6.6.0--serverlocalhostWait for the server to complete starting upRun integration tests usingpython setup.py test--addopts"integration_tests"
Package: confluence-utils
Confluence UtilsCLI Utilities for Confluence.InstallationSystem RequirementsPython 3.7+Install withpipx(recommended)InstallpipxRunpipx install confluence-utilsInstall withpip:Runpip install confluence-utilsUsageCommandspublish$confluencepublish--helpUsage: confluence publish [OPTIONS] PATHOptions:--token TEXT  Confluence API Token. Optionally set with CONFLUENCE_TOKEN.[required]--space TEXT  Confluence Space. Optionally set with CONFLUENCE_SPACE.[required]--url TEXT    The URL to the Confluence API. Optionally set withCONFLUENCE_URL.  [required]--help        Show this message and exit.
Package: confluenpy
ConfluenPyConfluenPy is a Python package that allows you to interact with Atlassian Confluence via the REST API to programmatically create and update documentation pages content.Example usage# Example usageconfluence=atlassian.Confluence(url='https://example.atlassian.net/',username='your.user@company.com',password=os.getenv('CONFLUENCE_API_TOKEN'))page=Page(title='WonderDocs',space='IsVast',confluence=confluence)# Add a table of contentspage.body.toc()# Add a horizontal rulepage.body.horizontal_rule()# Takes the Readme.md file and converts it to confluence formatwithopen('README.md',encoding='utf-8')asmarkdown_text:markdown=MarkdownToConfluenceConverter.convert(markdown_text.read())# Only takes the second section of the markdown filepage.body.content+=markdown.section(2)# Upload any local images referenced in the markdownforfileinMarkdownToConfluenceConverter.local_images_to_be_uploaded:page.attach_content(content=file.open("rb"),name=file.name,)# Adds some more contentpage.body.heading('h1',"Biggest heading")page.body.block_quote('This is a paragraph')page.body.code_block(title='tt',content='Wonderful code')# Update the pagepage.update()InstallationSimply install the package using pip:pipinstallconfluenpyUsageConfluence pages are represented by thePageclass. The page content is handled by aPageBodyobject, which represents it in theconfluence wiki markup.
The following confluence macros are also supported via the wiki markup (see theMacroMixinclass for details):
-toc-code blockMarkup supportTheMarkdownToConfluenceConverterclass allows to convert markdown to confluence wiki markup. The following markdown elements are supported:- headings
- code blocks
- images (both public and local to the repository, see the example above)
- linksRegular markup notation is also supported (bold, italic..).
Package: confluent
confluentIn times of distributed systems and en vogue micro-architecture it can get quite cumbersome to keep constants that are required by several components up-to-date and in sync. It can get especially hard when these components or services are written in different languages.confluenttargets this issue by using a language neutral YAML configuration that lets you generate language specific config files in the style of classes, structs or consts.ExampleAlright, after all this confusing nerd-talk, lets just have a look at a simple example to see whatconfluentcan do for you.The example YAML file contains a property namedopenerwith the valueHello World. Output files shall be generated forTypeScript,PythonandC. In addition, theC-file shall be distributed to a Git server'sconfig-folder (for more information please have a look attest-config.yaml).Input (readme-config.yaml)languages:-type:typescriptproperty_naming:screaming_snakeexport:esm-type:pythonfile_naming:snakeproperty_naming:screaming_snake-type:cfile_naming:snakeproperty_naming:pascaldistributions:-type:gitpath:configurl:https://github.com/idontknow/example.gitproperties:-type:stringname:openervalue:Hello WorldExecute confluent# -d is used to distribute the C-file to Git.python3-mconfluent-creadme-config.yaml-dOutput (readme-config.ts)exportconstReadmeConfig={OPENER:'Hello World',}asconst;Output (readme_config.py)classReadmeConfig:OPENER='Hello World'Output (readme_config.h)#ifndef README_CONFIG_H#define README_CONFIG_H/* Generated with confluent v0.3.0 (https://pypi.org/project/confluent/). */conststruct{char*Opener;}ReadmeConfig={"Hello World",};#endif/* README_CONFIG_H */Currently supported languagesJavaJavaScriptTypeScriptPythonCGoInstallationpython3-mpipinstallconfluentConfigurationFor detailed configuration information, please checkexample/test-config.yaml. All possible values are described there.UsageCommandline# For more information run "python3 -m confluent -h".python3-mconfluent-ctest-config.yaml-ogeneratedScriptfromconfluentimportOrchestrator# Create Orchestrator instance from file.orchestrator=Orchestrator.read_config('test-config.yaml')# Write configs to 'generated' directory.orchestrator.write('generated')# Distribute configs (if required).orchestrator.distribute()How to participateIf you feel that there's a need for another language, feel free to add it. For detailed information how to add support for a new language, please refer toREADME.md.