Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install isotoma.recipe.facts

How to install isotoma.recipe.facts

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install isotoma.recipe.facts
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.0.6 Available View build log
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
0.0.0 Available View build log
Windows (64-bit)
0.0.6 Available View build log
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
0.0.0 Available View build log
Mac OS X (10.5+)
0.0.6 Available View build log
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
0.0.0 Available View build log
Linux (32-bit)
0.0.6 Available View build log
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
0.0.0 Available View build log
Linux (64-bit)
0.0.6 Available View build log
0.0.5 Available View build log
0.0.4 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Available View build log
0.0.0 Available View build log
 
Author
License
Apache Software License
Dependencies
Lastest release
version 0.0.6 on May 23rd, 2012

Introduction

This package provides information about the host you are running buildout on.

Exposed Parameters

hostname
The hostname of the machine buildout is running on, as returned by socket.gethostname()
fqdn
The fully qualified domain of the machine buildout is running on, as return by socket.getfqdn(). If no fqdn is available, this will be the same as hostname.
interface.X.address
The IP address of the network interface X.
user.name
The name of the account running buildout
user.uid
The uid running buildout. Numerical.
user.gid
The gid running buildout. Numerical.
user.home
The home directory of the user running buildout
vcs.type
The type of checkout that buildout is being run from. Supports Mercurial ('hg'), Git ('git') or Subversion ('svn'), otherwise will be 'unknown'.
vcs.branch
The branch or that that buildout is being run from. Will be 'unknown' for unsupported VCS.

Using facts

This example uses the missingbits echo recipe to print information about the current machine:

[buildout]
parts = echo

[facts]
recipe = isotoma.recipe.facts

[echo]
recipe = missingbits:echo
echo =
    The hostname is ${facts:hostname}
    The fdqn is ${facts:fdqn}
    The main IP address is ${facts:interface.eth0.address}
    The VCS type is ${facts:vcs.type} and branch is ${facts:vcs.branch}
    The user is ${facts:user.name} and their home dir is ${facts:user.home}

Changelog

0.0.6 (2012-02-10)
  • Added support for Mercurial VCS
0.0.5 (2012-02-03)
  • Force english locale so the 'svn info' output is parseable everywhere
0.0.4 (2012-02-03)
  • Set lsb.codename and other lsb properties so we can make decisions base on the distro version.
0.0.3 (2011-08-30)
  • Set user.name, user.home, user.uid and user.gid facts
  • Set vcs.branch and vcs.type even if the cwd isn't Git or SVN.
0.0.2 (2011-08-22)
  • Add Git branch detection
0.0.1 (2011-08-11)
  • Detect information about vcs
0.0.0 (2011-08-09)
  • Initial version
  • Ability to get fqdn, hostname and ip addresses (by eth name)

Subscribe to package updates

Last updated May 23rd, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.