This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Introduction

Reparted is my attempt at learning python ctypes module to create bindings for c api’s so use it at your own risk. I was a bit confused on the way parted and pyparted interface works, my aim was to create a simple interface. It does not have the full set of features parted has to offer, only enough to create and delete partitions and set the labels. It has been tested using python 2.7 and libparted 3.0. Feel free to check the code and point out enhancements. For any questions my email is rq.sysadmin@gmail.com, have fun!

Downloads

You can download the package from PyPi:

http://pypi.python.org/pypi/reparted/

or checkout reparted on github:

http://github.com/xzased/reparted

Installation

You can get reparted using pip to install it from PyPI:

pip install -U reparted

Note

You must have libparted installed and available from your LD_LIBRARY_PATH

Documentation

You can view the documentation and quickstart guide here:

http://xzased.github.com/reparted

1.2 Release Notes

Changes from 1.1

There are no syntax changes in this version (and hopefully never will), so code working on previous versions should work just fine, however, there are some minor structure changes that improve readability and fixed weird behavior. The Partition class has been moved to its own module partition.py, this will not affect you if you are importing like:

from reparted import *

Other than that, there are only the following bugfixes and cool additions:

Bug Fixes

  • Failed to add primary partition after extended partition was created in msdos disks.
  • Reparted would segfault if attempting to add logical partitions on non-msdos disks.
  • Partition types were not being checked against disk types and extended partitions.

Additions

  • Basic operation support for size class.
  • Device, Disk and Partition instances provide a size method.
  • Disk class now provides usable_free_space and total_free_space methods.
  • Logical partitions are added automatically to extended partitions (you can still provide the start and/or end sector if you want to).*

1.1 Release Notes

Bug Fixes

  • No error was raised when calling Device with an invalid path.
  • Calculations in to method from Size class were wrong.
  • Reparted would segfault when initializing a fresh disk and call certain disk methods.

Additions

  • Custom exceptions.
  • Nice documentation.
Release History

Release History

1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
reparted-1.2.tar.gz (126.8 kB) Copy SHA256 Checksum SHA256 Source Jun 23, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting