Saravanan666/pypi-org huggingface dataset:
Package: clickup-to-jira
ClickUp to JIRA ConverterDescriptionThis project is a small utility that helps migrating tasks from ClickUp to JIRA.InstallationIn order to use the package please install it by running the following command in the directory where thesetup.pyis found:pipinstall.ExecutionAfter installing the library run the following command.migrate_to_jiraKeep in mind that the following environmental variables need to have a proper value.Environmental VariableRequiredDefaultDescriptionJIRA_URLTrueNoneThe base URL for JIRA APIJIRA_API_KEYTrueNoneThe API key created for accessing JIRAJIRA_USERTrueNoneEmail of the JIRA user the API key belongs toCLICKUP_API_KEYTrueNoneThe API key created for accessing ClickUpLOGGING_FORMATFalse%(asctime)s %(name)-12s:" " %(levelname)-" "8s -  " "%(message)sThe format of the application logsLOGGING_LEVELFalseINFOThe logging level of the applicationJIRACLICKUPLINKFalseNoneIf True, will create link from Jira to ClickUpSTATUSMAPFalseNoneFilename/path of status map file. Format: clickupvalue=jiravalue, per lineTYPEMAPFalseNoneFilename/path of type map file. Format: clickupvalue=jiravalue, per line
Package: clickup-to-s3-migration
ClickUp to Data Lake (S3) Migration and backup All Data Scripts[]My coworkers and I created this free and open-source library. Anyone can now transfer entire clicks folders, tickets, and comments to AWS S3. When we switched from Clickup to JIRA software, this task was essentially done to backup the entire Clickup system. This threaded script employs the maximum number of threads to use ClickUP APIS and migrate all data into Data Lake S3 so that users or teams can use Athena to query using regular SQL if necessary.AuthorsSoumil Nitin ShahApril Love ItuhatDivyansh PatelNOTE:This is migration script which will move all the data from ClickUp we will add  more features and methods in case if you want to just backup a given workspace or Folde. But For now this will Back up Everything feel free to add more functionality and submit Merge Request so other people can use the functionality. Note this is more than 500 Lines of code I will cleanup and add some amazing functionality during my free timeclickup_to_s3_migrationInstallationpipinstallclickup_to_s3_migrationUsageimportsysfromClickUptoS3MigrationimportClickUptoS3Migrationdefmain():helper=ClickUptoS3Migration(aws_access_key_id="<ACCESS KEY>",aws_secret_access_key="<SECRET KEY GOES HERE>",region_name="<AWS REGION>",bucket="<BUCKET NAME >",clickup_api_token="<CLICKUP API KEY>")ressponse=helper.run()main()Itâ€™s really that easy this will iterate over all Workspaces For Each Workspaces it will call all Spaces and For Each Space it will get all Folders and For Each Folder it will Call List and For Each list call Tickets and Each Tickets call CommentsExplanation on the code works and FlowCompany can have several WorkSpace. The Code calls API and get all workspaces. Each work spaces can have several spaces and each spaces can have several folders and Each folder has many Lists and Each list has many tickets and Each tickets can have several CommentsFigure Shows the structure how click up stores data and shows how we need to iterate and get all dataEnd GoalOnce the Script is complete running which might take 1 or 2 days depending upon how much data you haveyou can Then create glue crawler and then  Query the data using Athena (SQL Query)LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: clickuptosql
ClickUp to SQLReplicate ClickUp Database to a SQL Table.Developed byDipan Nanda(c) 2023Example of UsagefromclickuptosqlimportMigrate2Sqlfrometl_encryptimportget_clickup_api_keyfromsqlalchemy.typesimportNVARCHARspaces=Noneattributes=None# None selects every attribute by default# spaces = [<-- LIST OF SPACE_ID'S -->]# attributes = [<-- LIST OF ATTRIBUTES -->]api_key='<-- YOUR API KEY -->'server='<-- SERVER NAME -->'database='<-- DATABASE NAME -->'username='<-- YOUR USERNAME -->'password='<-- YOUR PASSWORD -->'driver='<-- SQL DRIVER -->'sql_string=f'{username}:{password}@{server}/{database}?driver={driver}'dtype={'id':NVARCHAR(length=50)}helper=Migrate2Sql(clickup_api_token=api_key,spaces=spaces,optimise=True,attribute_values=attributes,sql_connection=sql_string,dtype=dtype)helper.start()ChangelogGohereto checkout the complete changelog.LicenseThis is under GNU GPL v3.0 License
Package: clickup-to-sqlite
clickup-to-sqliteSave data fromClickUpto a SQLite database.Currently to CLI tool collects the following data from ClickUp:TeamsSpacesListsFoldersTasksTime entriesThe following data is currently not yet downloaded:CommentsGoalsGuestsMember dataViewsHow to install$ pip install clickup-to-sqliteAuthenticationFirst, you will need to get your personal access token from ClickUp. Retrieve it
from ClickUp underSettings > My Apps > Apps > API Token. Then use the
value with the--auth-tokenoption like explained below or provide it with theCLICKUP_ACCESS_TOKENenvironment variable. This works especially well when
using something likedirenv.UsageTo download your ClickUp data into a sqlite database run the following command:$ clickup-to-sqlite fetch --auth-token=pk_YOUR_PERSONAL_TOKEN clickup.sqliteNote: Currently the data fetching will run into the rate limit applied by the
ClickUp API if your backlog of tasks or time entries is rather large.Once you have downloaded the data into the sqlite database, you can explore the
data. I recommend to have a look atDatasettefor adhoc
analysis.
Package: clickupy
ClickupyA library and CLI for interacting withClickupGetting StartedTo install the library runpip3 install clickupyUsage$ clickup --help
Usage: clickup [OPTIONS] COMMAND [ARGS]...

  A command line tool for interacting with clickup

Options:
  --format [human|json]
  --api_key TEXT         An API KEY for clickup  [required]
  --help                 Show this message and exit.

Commands:
  fuse      Create a FUSE filesystem for Clickup resources
  projects  Get a space's projects
  spaces    Get a team's spaces
  tasks     Get a team's spaces
  team      Get a user's team
  teams     Get a user's teams
  user      Get a userFuseThe fuse subcommand has only been tested on OSX. To enable FUSE on OSX, installOSXFUSE.LicenseThis project is licensed under the MIT License.
Package: clickupython
clickupythonA client for working with the ClickUp API V2. It can be used to interact with the ClickUp API in your projects.Documentation (WIP) and examples can be found here:clickupython documentationInstructions1) Installingpip install clickupython2) Library UsageUsing clickupython in your application takes just a couple quick steps.To use the client for a personal account context (no actions on behalf of another user)fromclickupythonimportclientAPI_KEY='YOUR API KEY'c=client.ClickUpClient(API_KEY)# Example request<<<<<<<HEADc=client.ClickUpClient(API_KEY)=======>>>>>>>c242702ce58f983c0fa42b1f24e7dcb772fe97eat=c.create_task("list_id",name="Test task",due_date="march 2 2021")print(t.name)For more examples, please refer to theDocumentationCurrent ClickUpClient FunctionsTaskget_task(task_id)get_tasks(list_id, archived, page, order_by, reverse, subtasks, statuses, include_closed, assignees, due_date_gt, due_date_lt, date_created_gt, date_created_lt, date_updated_gt, date_updated_lt)create_task(list_id, name, description, priority, assignees, tags, status, due_date, start_date, notify_all)update_task(task_id, name, description, status, priority, time_estimate, archived, add_assignees,remove_assigneesListget_list(list_id)get_lists(folder_id)create_list(folder_id, name, content, due_date, priority, status)create_folderless_list(space_id, name, content, due_date, priority, assignee, status)update_list(list_id, name, content, due_date, due_date_time, priority, assignee, unset_status)delete_list(list_id)add_task_to_list(task_id, list_id)remove_task_from_list(task_id, list_id)Folderget_folder(folder_id)get_folders(space_id)create_folder(space_id, name)update_folder(folder_id, name)delete_folder(folder_id)Attachmentsupload_attachment(task_id, file_path)Commentsget_task_comments(task_id)get_list_comments(list_id)get_chat_comments(view_id)update_comment(comment_id)delete_comment(comment_id)create_task_comment(task_id)Teamsget_teams()Checklistscreate_checklist(task_id, name)create_checklist_item(checklist_id, name, assignee)delete_checklist_item(checklist_id, checklist_item_id)update_checklist_item(checklist_id, checklist_item_id, name, resolved, parent)Goalscreate_goal(team_id, name, due_date, description, multiple_owners, owners, color)update_goal(goal_id, name, due_date, description, rem_owners, add_owners, color)delete_goal(goal_id)get_goal(goal_id)get_goals(team_id, include_completed)Membersget_task_members(task_id)get_list_members(list_id)Tagsget_space_tags(space_id)create_space_tag(space_id, name)update_tag(space_id, name, new_name)tag_task(task_id, tag_name)untag_task(task_id, tag_name)Spacescreate_space(team_id, name, features)delete_space(space_id)get_space(space_id)get_spaces( team_id, archived)Time Trackingget_time_entries_in_range(team_id, start_date, end_date, assignees)get_single_time_entry(team_id, timer_id)start_timer(team_id, timer_id)stop_timer(team_id)ContactZach Johnson & Robert MullisEmail:imzachjohnson@gmail.com,phoenix.scooter@gmail.comAcknowledgementstimefhumanword2numberLicenseDistributed under the GNU General Public License v3.0. SeeLICENSEfor more information.
Package: clickutils
ClickUtilsExtra utils for click libraryExamplesLoading click groups and commands from filepath or directory

Directory structure
_ cwd
 |_ __init__.py (contains code below)
 |_ plugins/
   |_ group_or_command_folder
     |_ *groups (this folder must exists to find click groups or commands)
       |_ __init__.py (any click groups or commands will be pulled from this location)
   ...importosimportclickfromclickutilsimportclick_loader@click.group()@click.option('--verbose','-v',type=bool,is_flag=True,default=False,help='Print more verbose output')defcli(verbose:bool):'''click_plugins'''click_loader.load(plugins_group,os.path.dirname(os.path.abspath(__file__)),verbose=verbose)@click.group()defplugins_group():'''click_plugins test plugins'''passcli.add_command(plugins_group,name='plugins')if__name__=='__main__':cli()Same example using decoratorimportosimportclickfromclickutilsimportclick_loader@click.group()defcli(verbose:bool):'''click_plugins'''@click_loader.group(os.path.dirname(os.path.abspath(__file__)),name='plugins')defplugins_group():'''click_plugins test plugins'''passcli.add_command(plugins_group)if__name__=='__main__':cli()Early example of ClickViewsetimportclickfromclickutils.viewsetsimportAbstractClickViewset,clickmixinsfromclickutils.viewsetsimportAbstractClickViewset,clickmixinsclassUserDictViewset(AbstractClickViewset):Name='DictionaryViewset'Version='1.0.0'Viewset={'users':['user1','user2','user3']}commands=('list','version','another_command','echo')hidden_commands=('echo',)@clickmixins.command(name='another_command')defanother_command(self):print('defined another user command that can interact with object (self) which contains Viewset attributes')"""overloading convert function in BaseClickViewset;this is a custom way to add the Viewset into the command class attributes"""defconvert(self):ifisinstance(self.Viewset,dict):forkey,valueinself.Viewset.items():setattr(self,key,value)@UserDictViewset(name='test_command2')deftest_command_group2():"""Test command2 plugin"""pass
Package: click-utils
a set of utilites for writing command line programs with ClickFree software: BSD licenseDocumentation:https://click-utils.readthedocs.org.FeaturesCouple of usefulloggingoptions and typesA custom command and option class for printing env vars names (WIP)More to come…History0.2.0 (2015-01-30)modifyloglevel_option(is_eager, callback with storing value on context)add an abstractlogger_optionand alogfile_option0.1.0 (2015-01-26)First release on PyPI.initial project structureAdd LogLevelChoice typeAdd loglevel_optionAdd logconfig_option
Package: click-uwescience
$ click_Click is a Python package for creating beautiful command line interfacesin a composable way with as little code as necessary.  It's the "CommandLine Interface Creation Kit".  It's highly configurable but comes withsensible defaults out of the box.It aims to make the process of writing command line tools quick and funwhile also preventing any frustration caused by the inability to implementan intended CLI API.Click in three points:-   arbitrary nesting of commands-   automatic help page generation-   supports lazy loading of subcommands at runtimeRead the docs at http://click.pocoo.org/This library is stable and active. Feedback is always welcome!
Package: click-web
click-webServe click scripts over the web with minimal effort.UsageSee this demoscreen capture.Take an existing click script, like this one:example_command.pyimport click
import time

@click.group()
def cli():
    'A stupid script to test click-web'
    pass

@cli.command()
@click.option("--delay", type=float, default=0.01, help='delay for every line print')
@click.argument("lines", default=10, type=int)
def print_rows(lines, delay):
    'Print lines with a delay'
    click.echo(f"writing: {lines} with {delay}")
    for i in range(lines):
        click.echo(f"Hello row: {i}")
        time.sleep(delay)

if __name__ == '__main__':
    cli()Create a minimal script to run with flaskapp.pyfrom click_web import create_click_web_app
import example_command

app = create_click_web_app(example_command, example_command.cli)Running example app:In Bash:export FLASK_ENV=development
export FLASK_APP=app.py
flask runCaution: If you plan to serve publicly make sure you setup security (SSL, login etc.)
SeeAuthenticationAuthenticationFor an example of how to secure using http digest auth see theauth example.Note: There is no permission system and all logged in users can access everything.
If you plan to deploy in an open environment make sure to setup HTTPS.Custom StylingFor an example of how to customize styling using CSS and add extra page head or footer see thecustom example.Unsupported click featuresIt has only been tested with basic click features, and most advanced
features will probably not work.Variadic arguments of file and path typePromts (probably never will)Custom ParamTypes (depending on implementation)TODOAbort started/running processes.Browser historyIncluded 3:rd party librariesSplitJs- Copyright (c) 2020 Nathan Cahill (MIT license)
Package: clicky
ClickyClicky is a simple Python tool for taking CLIs written usingclickand exposing them as bots on platforms such as Slack and Discord.InstallationClicky is available on PyPI and can be installed with pip. For Click & Slack,
use:pipinstall"clicky[click,slack]"and for Discord use:pipinstall"clicky[click,discord]"Usage & DocsSee the latest release documentation athttps://tkte.ch/clicky/.LicenseClicky is licensed under the MIT license. See theLICENSEfile for
more information.
Package: clickyaml
clickYamlClickYaml reads a.yamlfile and creates click Commands out of it.Free software: MIT licenseDocumentation:https://clickyaml.readthedocs.io.InstallationStable releaseTo install clickYaml, run this command in your terminal:$pipinstallclickyamlThis is the preferred method to install clickYaml, as it will always install the most recent stable release.If you don’t havepipinstalled, thisPython installation guidecan guide
you through the process.From sourcesThe sources for clickYaml can be downloaded from theGithub repo.You can either clone the public repository:$gitclonegit://github.com/vandyG/clickyamlOr download thetarball:$curl-OJLhttps://github.com/vandyG/clickyaml/tarball/masterOnce you have a copy of the source, you can install it with:$pythonsetup.pyinstallUsageInputyamlfile example:simplecommand:script:"/home/user/scripts/simplecommand.bash"params:-!argparam_decls:[argument]-!optparam_decls:["--option"]complexcommand:script:"/home/user/scripts/complexcommand.bash"help:"ComplexCommand"params:-!argparam_decls:[id]-!argparam_decls:[type]-!argparam_decls:[category]type:!objclass:click.Choicechoices:["1","2","3","ALL"]case_sensitive:False-!optparam_decls:["--email","-E"]multiple:Trueenvvar:MY_EMAILhelp:"Specifythemailinglistwiththisoption"Note: There are certain rules on the structure of the yaml file:Each command block needs to have blocks for eachparameterof the command that you define. To know the available parameters refer to theclick documentationApart from parameters to click.Command ascriptblock can also be used. Script represents a script that you want to link with your command.There are three types of tags that can be used in the yaml file:!obj,!argand!opt!objcan be used to create custom objects!argcan be used to createclick.Argumentobjects!optcan be used to createclick.OptionobjectsTheclickyamlmodule takes in the yaml file and createsCommander()objects for each command. ACommander()object houses the command, scripts associated with the command and the callback.There are two ways to get the commands from yaml data asclick.Commandobjects:Using get_command()Using get_commanders()Get specific commands from the yaml filefromclickyamlimportget_command,parse_yamlparsed_yaml=parse_yaml(path=path_to_yaml)# this command has a default callback that runs the script associated with the commandcommand_default=get_command(name="simplecommand",parsed_yaml=parsed_yaml,)#this command has custom callback that prints the passed argumentscstm_clbk=lambda**kwargs:print(kwargs)command_custom=get_command(name="simplecommand",parsed_yaml=parsed_yaml,callback=cstm_clbk)Get all the Commander objects yaml file in a dictionaryall the commands will be assigned the default callbackfromclickyamlimportget_commanderscommanders=get_commanders(yaml=yaml_data)# returns all the commands in a dictionarysimplecommand=commanders["simplecommand"].commandcomplexcommand=commanders["complexcommand"].commandCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2023-02-03)First release on PyPI.
Package: clico
clicoThe library implements create short links viacli.com(Ex. cli.co) service.cli.com documentationInstallation$pipinstallclicoSettingsOptional environment variables:CLICO_API_KEY - YourAPI keyUsingfromclicoimportClico
fromclico.modelsimportLink,Domain,Integrationclico=Clico(api_key='YOUR_API_KEY')orclico=Clico()# If `CLICO_API_KEY` environment variable existssingle_link=clico.single_link(Link(**{'domain':Domain.CLI_CO,'target_url':'https://google.com','callback_url':'https://my-api.com/callback','is_deep':False,'id_campaign':'my-campaign','utm_phone':'XXXXXXXXXXX','utm_source':'twitter','utm_medium':'banner','utm_campaign':'2019','utm_content':'my ad','utm_term':'term'}))multiple_links=clico.multiple_links([Link(**{'domain':Domain.CLI_CO,'target_url':'https://google.com','callback_url':'https://my-api.com/callback'}),Link(**{'domain':Domain.IN_SV,'target_url':'https://google.com','callback_url':'https://my-api.com/callback','utm_phone':'XXXXXXXXXXX','utm_term':'term'})])integration=clico.integration(Integration(**{'callback_uri':'https://my-api.com/callback','redirect_uri':'https://google.com','user_data':{'key':'value'}}))
Package: clicolor
clicolorQuick python reference for terminal color escape codesUsageInstall options:Install the packageclicolorAdd as a submodulegitsubmoduleaddhttps://github.com/camas/clicolorOr just copycli.pyandLICENSEsomewhereThenfrom clicolor.cli import CLI, ...Examplesprint(f"{CLI.BG_YELLOW}{CLI.GREEN}Green on yellow.{CLI.RESET}")print(f"{CLI.BOLD}{CLI.RED}Bold red.{CLI.RESET}")print(f"{CLIT.bg(128,0,0)}{CLIT.fg(255,99,71)}Truecolor tomato red on maroon red background{CLI.RESET}")test.pyuse test.py to run a variety of tests including modifiers, 8/16 colors, 256 colors and Truecolors.
Package: cli-color-py
cli-color-py 0.6.0Library to output colored text to the terminal.This library is designed to be subjectively more elegant and readable than
alternatives I was able to find.Compared to some alternatives cli-color-py currently has less colors available;
only supporting 14 of the 256+ supported colors in most (modern) terminals.Elegant/Minimalistic access to colors and stylesfromcli_colorimportred,bright_yellow,green,boldprint(green("hello"))print(bold(red("world")))print(bright_yellow("background",bg=True))Low level access to colors and stylesLow level access however is a bit less elegant as for colors you need to
explicitly choose between the foreground or background.cli-color-py isn't really made for doing stuff like this, but it is possiblefromcli_color.colorimportColor,Attributeprint(Color.RED.default(),"Red text",Color.CYAN.background(),"cyan background",Attribute.RESET)ColorsSupported colors are currently:black,red,green,yellow,blue,magenta,cyan,white,bright_red,bright_green,bright_yellow,bright_blue,bright_magenta,bright_cyanBackground colors can be used by settingbgtoTruei.e.red("text", bg=True)NOTE: background and bright colors are not officially supportedAttributes or 'styles'Supported attributes are:reset,bold,underline,blinkAttributes work similar to Colors but cannot be displayed on the background:fromcli_colorimportblinkprint(blink("LOTTERY WINNER!!!"))More colors?It's possible to add 256 color support but this currently seems unnecessary
to me personally.The 14 available colors should be more than enough for any cli tool/script and
will work nicer with most color schemes.Windowsfor Windows a modern terminal (compared to cmd/powershell) is required like
Windows Terminal or any other modern terminal on windows that uses ANSI colors.
Package: clicolors
clicolors - Command Line Interface::ColorsUsage:>>> from clicolors import colorizeExample 1>>> print colorize('Example text 1', fg='blue',bg='red',attr='bold')Example 2>>> print colorize('Example text 2', 'blue','red','bold')Example 3>>> print colorize('Example text 3', fg='yellow')Example 4>>> print colorize('Example text 4', 'yellow')Example 5>>> print colorize('Example text 5', bg='green')Example 6>>> print colorize('Example text 6',attr='underline')Example 7>>> print colorize('Example text 6',bg='cyan',attr='underline',fg='black')Example: clicolors Demo>>> from clicolors import colorize, COLORS, ATTRIBUTES>>> print colorize('clicolors : A simple Python module to colorize your Linux terminal',fg='black',bg='white',attr='underline')
>>> print ('Foreground: '+' '.join([colorize(color, fg=color) for color in COLORS]))
>>> print ('Background: '+' '.join([colorize(color, bg=color) for color in COLORS]))
>>> print ('Attributes: '+' '.join([colorize(attributes, attr=attributes) for attributes in ATTRIBUTES]))
Package: clicol-plugin-aspath
CLICOL PLUGIN ASPATHPlugin forclicolwhich helps troubleshooting by resolving sitecodes for AS path.ExampleDefault append view:
 * i  10.0.35.48/28    10.123.123.158           0    100      0 21302 13979 65120 64932 ? ATT ABC --- EFH
 *>                    10.123.234.154                         0 21302 13979 65120 64932 ? ATT ABC --- EFH
 Or the inline view:
 * i  10.0.35.48/28    10.123.123.158           0    100      0 21302(ATT) 13979(ABC) 65120 64932(EFH) ?
 *>                    10.123.234.154                         0 21302(ATT) 13979(ABC) 65120 64932(EFH) ?ConfigurationIn~/.clicol/plugins.cfgthere must be a section for the plugin.Example with defaults:# AS Path resolver:
 [aspath]
 # disable until not configured
 active=no
 # view (append|inline)
 #outtype=append
 # database file default
 #dbfile=~/.clicol/plugin-aspath.db
 # what to print on unknown AS
 #unknownstr=---
 # Force dotted format for 4bytes AS numbers (no need to reconfigure router!)
 #forcedotformat=noFormat of database file:{ASNUM}\t{DESCRIPTION}\t{SITECODE}3 columns required, more columns are ok. Column separator is TAB!
Example:21302	AT&T EAME	ATT	-	Vendor
13979	AT&T NA	ATTThanks toI was usingtbaschak'sasdot-asplainlibrary for 4byte AS number conversion. Thanks!