Difference between revisions of "PyOpenSourceProjects"

From BITPlan Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
|title=pyOpenSourceProjects
 
|title=pyOpenSourceProjects
 
|url=https://github.com/WolfgangFahl/pyOpenSourceProjects
 
|url=https://github.com/WolfgangFahl/pyOpenSourceProjects
|version=0.0.1
+
|version=0.2.3
|date=2022-01-24
+
|date=2024-08-21
 
|since=2022-01-24
 
|since=2022-01-24
 
}}
 
}}
Line 17: Line 17:
 
<source lang='bash'>
 
<source lang='bash'>
 
issue2ticket -h
 
issue2ticket -h
usage: issue2ticket [-h] -o OWNER -p PROJECT -ts {github,jira}
+
usage: issue2ticket [-h] [-o OWNER] [-p PROJECT] [--repo] [-ts {github,jira}]
                     [-s {open,closed,all}] [-w WIKI]
+
                     [-s {open,closed,all}]
  
 
Issue2ticket
 
Issue2ticket
Line 28: Line 28:
 
   -p PROJECT, --project PROJECT
 
   -p PROJECT, --project PROJECT
 
                         name of the project
 
                         name of the project
 +
  --repo                get needed information form repository of current
 +
                        location
 
   -ts {github,jira}, --ticketsystem {github,jira}
 
   -ts {github,jira}, --ticketsystem {github,jira}
 
                         platform the project is hosted
 
                         platform the project is hosted
 
   -s {open,closed,all}, --state {open,closed,all}
 
   -s {open,closed,all}, --state {open,closed,all}
 
                         only issues with the given state
 
                         only issues with the given state
  -w WIKI, --wiki WIKI  results as WikiSon Ticket list
+
 
 +
</source>
 +
=== Examples ===
 +
<source lang='bash' highlight='1'>
 +
issue2ticket -o WolfgangFahl -p pyOpenSourceProjects -ts github
 +
# {{Ticket
 +
|number=1
 +
|title=OsProject, Ticket and commit as base entities
 +
|project=pyOpenSourceProjects
 +
|createdAt=2022-01-24 07:40:51+00:00
 +
|closedAt=
 +
|state=open
 +
}}
 +
...
 +
</source>
 +
# {{Ticket
 +
|number=1
 +
|title=OsProject, Ticket and commit as base entities
 +
|project=pyOpenSourceProjects
 +
|createdAt=2022-01-24 07:40:51+00:00
 +
|closedAt=
 +
|state=open
 +
}}
 +
# {{Ticket
 +
|number=2
 +
|title=Get Tickets in Wiki notation from github API
 +
|project=pyOpenSourceProjects
 +
|createdAt=2022-01-24 07:41:29+00:00
 +
|closedAt=2022-01-25 07:43:04+00:00
 +
|state=closed
 +
}}
 +
# {{Ticket
 +
|number=4
 +
|title=Autodetection of repo and owner
 +
|project=pyOpenSourceProjects
 +
|createdAt=2022-01-25 07:45:35+00:00
 +
|closedAt=2022-01-29 08:29:11+00:00
 +
|state=closed
 +
}}
 +
# {{Ticket
 +
|number=5
 +
|title=closedAt and createdAt instead of closed_at and created_at
 +
|project=pyOpenSourceProjects
 +
|createdAt=2022-01-29 08:25:55+00:00
 +
|closedAt=2022-01-29 08:28:56+00:00
 +
|state=closed
 +
}}
 +
# {{Ticket
 +
|number=6
 +
|title=gitlog2wiki bash replacement
 +
|project=pyOpenSourceProjects
 +
|createdAt=2022-01-29 08:31:18+00:00
 +
|closedAt=
 +
|state=open
 +
}}
 +
== checkos ==
 +
<source lang='bash'>
 +
checkos -h
 +
usage: checkos [-h] [-d] [-e] -o OWNER [-p PROJECT] [-l LANGUAGE] [--local]
 +
              [-v] [-ws WORKSPACE]
 +
 
 +
Check open source projects
 +
 
 +
options:
 +
  -h, --help            show this help message and exit
 +
  -d, --debug          add debug output
 +
  -e, --editor          open default editor on failed files
 +
  -o OWNER, --owner OWNER
 +
                        project owner or organization
 +
  -p PROJECT, --project PROJECT
 +
                        name of the project
 +
  -l LANGUAGE, --language LANGUAGE
 +
                        filter projects by language
 +
  --local              check only locally available projects
 +
  -v, --verbose        show verbose output
 +
  -ws WORKSPACE, --workspace WORKSPACE
 +
                        (Eclipse) workspace directory
 +
</source>
 +
=== Example ===
 +
<source lang='bash' highlight='1'>
 +
checkos -o WolfgangFahl --local
 +
WolfgangFahl/nicegui_widgets ✅ 37/37: https://github.com/WolfgangFahl/nicegui_widgets
 +
WolfgangFahl/py-3rdparty-mediawiki ✅ 37/37: https://github.com/WolfgangFahl/py-3rdparty-mediawiki
 +
WolfgangFahl/py-sidif ✅ 37/37: https://github.com/WolfgangFahl/py-sidif
 +
WolfgangFahl/py-yprinciple-gen ✅ 37/37: https://github.com/WolfgangFahl/py-yprinciple-gen
 +
WolfgangFahl/pyCEURmake ✅ 37/37: https://github.com/WolfgangFahl/pyCEURmake
 +
WolfgangFahl/pyLoDStorage ✅ 37/37: https://github.com/WolfgangFahl/pyLoDStorage
 +
WolfgangFahl/pyMetaModel ✅ 37/37: https://github.com/WolfgangFahl/pyMetaModel
 +
WolfgangFahl/pyOpenSourceProjects ✅ 37/37: https://github.com/WolfgangFahl/pyOpenSourceProjects
 +
WolfgangFahl/scan2wiki ✅ 37/37: https://github.com/WolfgangFahl/scan2wiki
 
</source>
 
</source>

Latest revision as of 12:38, 21 August 2024

OsProject

OsProject
id  PyOpenSourceProjects
state  active
owner  WolfgangFahl
title  pyOpenSourceProjects
url  https://github.com/WolfgangFahl/pyOpenSourceProjects
version  0.2.3
description  
date  2024-08-21
since  2022-01-24
until  


Installation

pip install pyOpenSourceProjects
# alternatively if your pip is not a python3 pip
pip3 install pyOpenSourceProjects 
# local install from source directory of pyOpenSourceProjects 
pip install .

upgrade

pip install pyOpenSourceProjects  -U
# alternatively if your pip is not a python3 pip
pip3 install pyOpenSourceProjects -U


Scripts

issue2ticket

issue2ticket -h
usage: issue2ticket [-h] [-o OWNER] [-p PROJECT] [--repo] [-ts {github,jira}]
                    [-s {open,closed,all}]

Issue2ticket

optional arguments:
  -h, --help            show this help message and exit
  -o OWNER, --owner OWNER
                        project owner or organization
  -p PROJECT, --project PROJECT
                        name of the project
  --repo                get needed information form repository of current
                        location
  -ts {github,jira}, --ticketsystem {github,jira}
                        platform the project is hosted
  -s {open,closed,all}, --state {open,closed,all}
                        only issues with the given state

Examples

issue2ticket -o WolfgangFahl -p pyOpenSourceProjects -ts github 
# {{Ticket
|number=1
|title=OsProject, Ticket and commit as base entities
|project=pyOpenSourceProjects
|createdAt=2022-01-24 07:40:51+00:00
|closedAt=
|state=open
}}
...
  1. Issue 1 - OsProject, Ticket and commit as base entities
  2. Issue 2 - Get Tickets in Wiki notation from github API
  3. Issue 4 - Autodetection of repo and owner
  4. Issue 5 - closedAt and createdAt instead of closed_at and created_at
  5. Issue 6 - gitlog2wiki bash replacement

checkos

checkos -h
usage: checkos [-h] [-d] [-e] -o OWNER [-p PROJECT] [-l LANGUAGE] [--local]
               [-v] [-ws WORKSPACE]

Check open source projects

options:
  -h, --help            show this help message and exit
  -d, --debug           add debug output
  -e, --editor          open default editor on failed files
  -o OWNER, --owner OWNER
                        project owner or organization
  -p PROJECT, --project PROJECT
                        name of the project
  -l LANGUAGE, --language LANGUAGE
                        filter projects by language
  --local               check only locally available projects
  -v, --verbose         show verbose output
  -ws WORKSPACE, --workspace WORKSPACE
                        (Eclipse) workspace directory

Example

checkos -o WolfgangFahl --local
WolfgangFahl/nicegui_widgets ✅ 37/37: https://github.com/WolfgangFahl/nicegui_widgets
WolfgangFahl/py-3rdparty-mediawiki ✅ 37/37: https://github.com/WolfgangFahl/py-3rdparty-mediawiki
WolfgangFahl/py-sidif ✅ 37/37: https://github.com/WolfgangFahl/py-sidif
WolfgangFahl/py-yprinciple-gen ✅ 37/37: https://github.com/WolfgangFahl/py-yprinciple-gen
WolfgangFahl/pyCEURmake ✅ 37/37: https://github.com/WolfgangFahl/pyCEURmake
WolfgangFahl/pyLoDStorage ✅ 37/37: https://github.com/WolfgangFahl/pyLoDStorage
WolfgangFahl/pyMetaModel ✅ 37/37: https://github.com/WolfgangFahl/pyMetaModel
WolfgangFahl/pyOpenSourceProjects ✅ 37/37: https://github.com/WolfgangFahl/pyOpenSourceProjects
WolfgangFahl/scan2wiki ✅ 37/37: https://github.com/WolfgangFahl/scan2wiki