Skip to main content

No project description provided

Project description

phabfive

A command line tool to interact with Phabricator

The complete documentation for Phabfive can be found at Read the Docs

Features

A summary of the currently supported features:

  • Passphrase
    • Get specified secret
  • Diffusion
    • List repositories
    • Get branches for specified repository
    • Get clone URI for specified repository
    • Add repository
    • Edit URI
    • Create URI (observe repository)
  • Paste
    • List pastes
    • Get specified paste
    • Add paste
  • User
    • Who am I: information about the logged-in user
  • Maniphest
    • Add comment to task
    • Show task summary or full details
    • Create multiple tasks via template config file

Example usage

Grab a Phabricator token at https://<yourserver.com>/settings/panel/apitokens/

Configure:

 export PHAB_TOKEN=cli-ABC123
--OR--
 echo "PHAB_TOKEN: cli-ABC123" > ~/.config/phabfive.yaml

Usage:

phabfive passphrase K123

Run local development phabricator instance

First add the following 127.0.0.1 phabricator.domain.tld to your /etc/hosts file

Next start the mysql instance separate from the phabricator instance with

docker compose -f docker-compose-phabricator.yml up mysql

Then after the database is up and running yo ucan start the webserver with

docker compose -f docker-compose-phabricator.yml up phabricator

This startup will take some time to setup the demo instance. Once completed you can access your instance in your browser at http://phabricator.domain.tld/. On first use you need to setup your admin account. Most development for phabfive requires an API token, create one here http://phabricator.domain.tld/settings/user/<username>/page/apitokens/

Note there is no persistance disks so if the container is shutdown any data will be lost and you have to restart

LICENSE

Copyright (c) 2017-2023 Dynamist AB

See the LICENSE file provided with the source distribution for full details.

0.3.0 (2023-01-13)

Prelude

Maintenance release where we focus more on updating the current code and less on new features

The main new features to look for is the updated docker-compose.yml solution

Second major feature is the new maniphest app where we can query, add comment and create a batch of tasks from config file

Upgrade notes

  • Python support bumped up to minimum version of python 3.9

New features

  • Add in dependabot support to check for new python packages
  • #51 - Add support for rendering a batch of tickets and bulk create tickets at one time
  • Update support and logging feature to be more modern and better configurable from CLI
  • Added new dependency jinja2

0.2.0 (2022-03-17)

Prelude

Update to accommodate new Python versions and updated dependencies.

Upgrade Notes

  • Python 2.7 support has been dropped. The minimum version of Python now supported by Phabfive is version 3.8.

Bug Fixes

  • #40 - Update to anyconfig API >= 0.10.0

0.1.0 (2019-11-01)

Prelude

Initial release of Phabfive.

Supported Phabricator app endpoints:

  • passphrase
  • diffusion
  • paste
  • user

New Features

  • #23 - Function to get clone uri(s) from repo
  • #22 - Functionality to create Paste
  • #21 - Raise exception when Conduit access is not accepted for Passphrase
  • #20 - Add functionality to edit URI
  • #19 - Feature/edit uri
  • #16 - Feature/observe repositories
  • #14 - Print data from user.whoami
  • #12 - Errors now print to stderr
  • #11 - Default to only listing active repositories
  • #10 - Adding shortName
  • #9 - Feature/get specified paste
  • #8 - Repositories can now be created
  • #6 - Avoid string default
  • #5 - Pastes can now be listed, sort based on title
  • #3 - Added Paste app

Other Notes

  • #24 - Enable RTD build and docs updates
  • #18 - Add code coverage to tox
  • #17 - Proper flake8 with Black
  • #4 - Add encrypted notification config to .travis.yml
  • #2 - Black-linting
  • #1 - Added travis

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phabfive-0.3.0.tar.gz (22.5 kB view hashes)

Uploaded Source

Built Distribution

phabfive-0.3.0-py2.py3-none-any.whl (23.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page