Skip to content

necrophcodr/PyUpdater

Repository files navigation

<!doctype HTML>
<html>
<head>
<title>PyUpdater README</title>
<script src='http://mastersrp.kodingen.com/js/jquery-1.6.2.min.js'></script>
<style>
body{
    font-family:Ubuntu;
    background-color:#79C5FF;
    background-image:url(http://dl.dropbox.com/u/5579836/Pic/website/bg_test1.png);
    color: black;
}
table{
    border-style:dashed;
    border-width: 0.12em;
    border-color: black;
}
th, td{
    text-align: left;
    padding:0.2em;
    border-style: none;
    border-width: 2em;
}
.content{
    background-color:white;
    border-style:solid;
    border-color:black;
    border-width:1px;
    border-radius: 5px;
    padding:5px;
    padding-top:10px;
    margin-bottom: 10px;
    color:black;
}
.content_locked{
    background-color:transparent;
    border-style:none;
    padding:5px;
    padding-top:10px;
    color:black;
}
.footer{
    background-color:white;
    color:black;
    border-style:solid;
    border-color:black;
    border-width:1px;
    border-radius: 5px;
    padding:5px;
    margin:10px;
    margin-left:0;
    margin-right:0;
}
a.toggler:visited{
    color:#0099FF;
    text-decoration:none;
}
a.toggler:link{
    color:#0099FF;
    text-decoration:none;
}
a.toggler:hover{
    color:#3BBFFF;
    text-decoration:underline;
}
</style>
<script>
$('document').ready( function() {
    $('div#base_modules').hide();
    $('div#packages_settings_json').hide();
    $('div#packages_rules').hide();
    $('div#packages_checksum').hide();
    $('div#links').hide();
    $('div#links').show('fast', function() {
        $('div#base_modules').show('fast');
    }); 
});
</script>
</head>
<body>
<div class='content'>
First, please note that this is in no way final work.<br />
Second, it never will be. Updates may or may not be released over time.<br />
Also note that Python 3.2 was used to make these.<br />
If you like what I do, why not donate?<form style='display:inline;' action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3M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xbmeRIwwDQYJKoZIhvcNAQEBBQAEgYASph1RvSGMndH11ilmmCrN94uWvLskn0lDqoywlDestimO8AWpHlr+sDWkkc2zTVYvXKz776zqHGer9CcWciJNyUsIOJL60X2HI9YJKEzGDfOXMJNrE5zovI2ObrV9JowC4Ou4+7eib7GwmbHILkv4GZur9aY1ow1ToViesiGQ/g==-----END PKCS7-----"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form><br />
<b>Navigation</b>: <a href='#' id='hideshow' class='toggler'>+/-</a><br />
</div>

<div>
<div id='navigation' class='content'>
<div id="links">
<a class='toggler' id='hide_base_modules' href="#base_modules" >Scripts</a><br />
<a class='toggler' id='hide_packages_settings_json' href="#packages.settings.json" >packages.settings.json</a><br />
<a class='toggler' id='hide_packages_rules' href="#packages.rules" >packages.rules</a><br />
<a class='toggler' id='hide_packages_checksum' href="#packages.checksum" >packages.checksum</a><br />
</div>
</div>
<div class='content'>

<div id="base_modules">
<a name="base_modules"><h2>Scripts</h2></a>
<table border="1">
<tr><td>update.py</td><td>Update <i>all</i> or selected packages from <a href="#packages.rules">packages.rules</a></td></tr>
<tr><td>backup.py</td><td>Backup <i>all</i> or selected packages from <a href="#packages.rules">packages.rules</a></td></tr>
<tr><td>clean.py</td><td>Clean up <i>all</i> or selected packages from <a href="#packages.rules">packages.rules</a></td></tr>
</table>
</div>
<!--
<tr><td>TEXT</td><td>TEXT</td></tr>
-->

<div id='packages_settings_json'>
<a name="packages.settings.json"><h2>packages.settings.json</h2></a>
This file contains the settings for general use (like work directory and mirrors, although currently only ONE mirror is possible)<br />
tags:<br />
<table border="1">
<tr><td>mirror</td><td>Where all packages are located. Packages will be downloaded from 'mirror'+'<a href="#tag_tarfile">tarfile</a>'.</td></tr>
<tr><td>workdir</td><td>Where to download the packages to, and the base dir of all installations and extractions.</td></tr>
<tr><td>backupdir</td><td>This is where backups are placed when running the backup script. WIP</td></tr>
</table>
</div>

<div id='packages_rules'>
<a name="packages.rules"><h2>packages.rules</h2></a>
This folder contains JSON files with rules on how and where to download packages from.<br />
Each .json file...
<UL>
<LI>..Should contain at LEAST a "<a href="#tag_tarfile">tarfile</a>" tag. (name and instdir is NOT obligatory)</LI>
<LI>..Should ALWAYS have the root tag be "package".</LI>
</UL>
tags:<br />
<table border="1">
<tr><td><a name="tag_tarfile">tarfile</a></td><td>.tar.bz2 filename. Can be either abselute (mirror+tarfile) or direct (URL).</td></tr>
<tr><td>instdir</td><td><i>path</i> to extract <a href="#tag_tarfile">tarfile</a> to.</td></tr>
<tr><td>depend</td><td>List/array of dependencies (another package from <a href="#packages.rules">packages.rules</a>)</td></tr>
</table>
</div>

<div id='packages_checksum'>
<a name="packages.checksum"><h2>packages.checksum</h2></a>
This folder contains checksums (sha1 hashes) for every <a href="#tag_tarfile">tarfile</a> downloaded.<br />
There should be a checksum residing on the server as either 'mirror'+'<a href="#tag_tarfile">tarfile</a>'+".checksum or '<a href="#tag_tarfile">tarfile</a>'+".checksum.<br />
The backup scripts generates .checksum files too, for each project and what not. A checksum consists of a sha1 hash of a tarfile (containing your package) and a newline char (\n).
<br />
</div>
</div>
        <div class='footer'>
        Design by <a href='http://mastersrp.kodingen.com/'>mastersrp</a><sup>[<a href='mailto:tcg.thegamer@gmail.com'>email</a>]</sup>
        </div>
</div>
<script>
$('a#hideshow').click( function() {
    $('div#links').toggle('fast', function() {
        $('div#navigation').toggleClass('content');
        $('div#navigation').toggleClass('content_locked');
    });
});
$('a#hide_base_modules').click( function() {
    $('div#base_modules').show('fast');
    $('div#packages_settings_json').hide('fast');
    $('div#packages_rules').hide('fast');
    $('div#packages_checksum').hide('fast');
});
$('a#hide_packages_settings_json').click( function() {
    $('div#base_modules').hide('fast');
    $('div#packages_settings_json').show('fast');
    $('div#packages_rules').hide('fast');
    $('div#packages_checksum').hide('fast');
});
$('a#hide_packages_rules').click( function() {
    $('div#base_modules').hide('fast');
    $('div#packages_settings_json').hide('fast');
    $('div#packages_rules').show('fast');
    $('div#packages_checksum').hide('fast');
});
$('a#hide_packages_checksum').click( function() {
    $('div#base_modules').hide('fast');
    $('div#packages_settings_json').hide('fast');
    $('div#packages_rules').hide('fast');
    $('div#packages_checksum').show('fast');
});
</script>
</body>
</html>

About

A package manager that works cross-platform, in Python 3.2

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages