Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update psutil to 5.1.3 #62

Open
wants to merge 1 commit into
base: dallinger
Choose a base branch
from

Conversation

pyup-bot
Copy link

@pyup-bot pyup-bot commented Feb 7, 2017

There's a new version of psutil available.
You are currently using 1.2.1. I have updated it to 5.1.3

These links might come in handy: PyPI | Changelog | Repo | Docs

Changelog

5.1.3

=====

Bug fixes

  • 971_: [Linux] sensors_temperatures() didn't work on CentOS 7.
  • 973_: cpu_percent() may raise ZeroDivisionError.

5.1.2

=====

2017-02-03

Bug fixes

  • 966_: [Linux] sensors_battery().power_plugged may erroneously return None on
    Python 3.
  • 968_: [Linux] disk_io_counters() raises TypeError on python 3.
  • 970_: [Linux] sensors_battery()'s name and label fields on Python 3 are bytes
    instead of str.

5.1.1

=====

2017-02-03

Enhancements

  • 966_: [Linux] sensors_battery().percent is a float and is more precise.

Bug fixes

  • 964_: [Windows] Process.username() and psutil.users() may return badly
    decoding character on Python 3.
  • 965_: [Linux] disk_io_counters() may miscalculate sector size and report the
    wrong number of bytes read and written.
  • 966_: [Linux] sensors_battery() may fail with "no such file error".
  • 966_: [Linux] sensors_battery().power_plugged may lie.

5.1.0

=====

2017-02-01

Enhancements

  • 357_: added psutil.Process.cpu_num() (what CPU a process is on).
  • 371_: added psutil.sensors_temperatures() (Linux only).
  • 941_: added psutil.cpu_freq() (CPU frequency).
  • 955_: added psutil.sensors_battery() (Linux, Windows, only).
  • 956_: cpu_affinity([]) can now be used as an alias to set affinity against
    all eligible CPUs.

Bug fixes

  • 687_: [Linux] pid_exists() no longer returns True if passed a process thread
    ID.
  • 948_: cannot install psutil with PYTHONOPTIMIZE=2.
  • 950_: [Windows] Process.cpu_percent() was calculated incorrectly and showed
    higher number than real usage.
  • 951_: [Windows] the uploaded wheels for Python 3.6 64 bit didn't work.
  • 959_: psutil exception objects could not be pickled.
  • 960_: Popen.wait() did not return the correct negative exit status if process
    is kill()ed by a signal.
  • 961_: [Windows] WindowsService.description() may fail with
    ERROR_MUI_FILE_NOT_FOUND.

5.0.1

=====

2016-12-21

Enhancements

  • 939_: tar.gz distribution went from 1.8M to 258K.
  • 811_: [Windows] provide a more meaningful error message if trying to use
    psutil on unsupported Windows XP.

Bug fixes

  • 609_: [SunOS] psutil does not compile on Solaris 10.
  • 936_: [Windows] fix compilation error on VS 2013 (patch by Max Bélanger).
  • 940_: [Linux] cpu_percent() and cpu_times_percent() was calculated
    incorrectly as "iowait", "guest" and "guest_nice" times were not properly
    taken into account.
  • 944_: [OpenBSD] psutil.pids() was omitting PID 0.

5.0.0

=====

2016-11-06

Enhncements

  • 799_: new Process.oneshot() context manager making Process methods around
    +2x faster in general and from +2x to +6x faster on Windows.
  • 943_: better error message in case of version conflict on import.

Bug fixes

  • 932_: [NetBSD] net_connections() and Process.connections() may fail without
    raising an exception.
  • 933_: [Windows] memory leak in cpu_stats() and WindowsService.description().

4.4.2

=====

2016-10-26

Bug fixes

  • 931_: psutil no longer compiles on Solaris.

4.4.1

=====

2016-10-25

Bug fixes

  • 927_: Popen.__del__ may cause maximum recursion depth error.

4.4.0

=====

2016-10-23

Enhancements

  • 874_: [Windows] net_if_addrs() returns also the netmask.
  • 887_: [Linux] virtual_memory()'s 'available' and 'used' values are more
    precise and match "free" cmdline utility. "available" also takes into
    account LCX containers preventing "available" to overflow "total".
  • 891_: procinfo.py script has been updated and provides a lot more info.

Bug fixes

  • 514_: [OSX] possibly fix Process.memory_maps() segfault (critical!).
  • 783_: [OSX] Process.status() may erroneously return "running" for zombie
    processes.
  • 798_: [Windows] Process.open_files() returns and empty list on Windows 10.
  • 825_: [Linux] cpu_affinity; fix possible double close and use of unopened
    socket.
  • 880_: [Windows] Handle race condition inside psutil_net_connections.
  • 885_: ValueError is raised if a negative integer is passed to cpu_percent()
    functions.
  • 892_: [Linux] Process.cpu_affinity([-1]) raise SystemError with no error
    set; now ValueError is raised.
  • 906_: [BSD] disk_partitions(all=False) returned an empty list. Now the
    argument is ignored and all partitions are always returned.
  • 907_: [FreeBSD] Process.exe() may fail with OSError(ENOENT).
  • 908_: [OSX, BSD] different process methods could errounesuly mask the real
    error for high-privileged PIDs and raise NoSuchProcess and AccessDenied
    instead of OSError and RuntimeError.
  • 909_: [OSX] Process open_files() and connections() methods may raise
    OSError with no exception set if process is gone.
  • 916_: [OSX] fix many compilation warnings.

4.3.1

=====

2016-09-01

Enhancements

  • 881_: "make install" now works also when using a virtual env.

Bug fixes

  • 854_: Process.as_dict() raises ValueError if passed an erroneous attrs name.
  • 857_: [SunOS] Process cpu_times(), cpu_percent(), threads() amd memory_maps()
    may raise RuntimeError if attempting to query a 64bit process with a 32bit
    python. "Null" values are returned as a fallback.
  • 858_: Process.as_dict() should not return memory_info_ex() because it's
    deprecated.
  • 863_: [Windows] memory_map truncates addresses above 32 bits
  • 866_: [Windows] win_service_iter() and services in general are not able to
    handle unicode service names / descriptions.
  • 869_: [Windows] Process.wait() may raise TimeoutExpired with wrong timeout
    unit (ms instead of sec).
  • 870_: [Windows] Handle leak inside psutil_get_process_data.

4.3.0

=====

2016-06-18

Enhancements

  • 819_: [Linux] different speedup improvements:
    Process.ppid() is 20% faster
    Process.status() is 28% faster
    Process.name() is 25% faster
    Process.num_threads is 20% faster on Python 3

Bug fixes

  • 810_: [Windows] Windows wheels are incompatible with pip 7.1.2.
  • 812_: [NetBSD] fix compilation on NetBSD-5.x.
  • 823_: [NetBSD] virtual_memory() raises TypeError on Python 3.
  • 829_: [UNIX] psutil.disk_usage() percent field takes root reserved space
    into account.
  • 816_: [Windows] fixed net_io_counter() values wrapping after 4.3GB in
    Windows Vista (NT 6.0) and above using 64bit values from newer win APIs.

4.2.0

=====

2016-05-14

Enhancements

  • 795_: [Windows] new APIs to deal with Windows services: win_service_iter()
    and win_service_get().
  • 800_: [Linux] psutil.virtual_memory() returns a new "shared" memory field.
  • 819_: [Linux] speedup /proc parsing:
  • Process.ppid() is 20% faster
  • Process.status() is 28% faster
  • Process.name() is 25% faster
  • Process.num_threads is 20% faster on Python 3

Bug fixes

  • 797_: [Linux] net_if_stats() may raise OSError for certain NIC cards.
  • 813_: Process.as_dict() should ignore extraneous attribute names which gets
    attached to the Process instance.

4.1.0

=====

2016-03-12

Enhancements

  • 777_: [Linux] Process.open_files() on Linux return 3 new fields: position,
    mode and flags.
  • 779_: Process.cpu_times() returns two new fields, 'children_user' and
    'children_system' (always set to 0 on OSX and Windows).
  • 789_: [Windows] psutil.cpu_times() return two new fields: "interrupt" and
    "dpc". Same for psutil.cpu_times_percent().
  • 792_: new psutil.cpu_stats() function returning number of CPU ctx switches
    interrupts, soft interrupts and syscalls.

Bug fixes

  • 774_: [FreeBSD] net_io_counters() dropout is no longer set to 0 if the kernel
    provides it.
  • 776_: [Linux] Process.cpu_affinity() may erroneously raise NoSuchProcess.
    (patch by wxwright)
  • 780_: [OSX] psutil does not compile with some gcc versions.
  • 786_: net_if_addrs() may report incomplete MAC addresses.
  • 788_: [NetBSD] virtual_memory()'s buffers and shared values were set to 0.
  • 790_: [OSX] psutil won't compile on OSX 10.4.

4.0.0

=====

2016-02-17

Enhancements

  • 523_: [Linux, FreeBSD] disk_io_counters() return a new "busy_time" field.
  • 660_: [Windows] make.bat is smarter in finding alternative VS install
    locations. (patch by mpderbec)
  • 732_: Process.environ(). (patch by Frank Benkstein)
  • 753_: [Linux, OSX, Windows] Process USS and PSS (Linux) "real" memory stats.
    (patch by Eric Rahm)
  • 755_: Process.memory_percent() "memtype" parameter.
  • 758_: tests now live in psutil namespace.
  • 760_: expose OS constants (psutil.LINUX, psutil.OSX, etc.)
  • 756_: [Linux] disk_io_counters() return 2 new fields: read_merged_count and
    write_merged_count.
  • 762_: new scripts/procsmem.py script.

Bug fixes

  • 685_: [Linux] virtual_memory() provides wrong results on systems with a lot
    of physical memory.
  • 704_: [Solaris] psutil does not compile on Solaris sparc.
  • 734_: on Python 3 invalid UTF-8 data is not correctly handled for process
    name(), cwd(), exe(), cmdline() and open_files() methods resulting in
    UnicodeDecodeError exceptions. 'surrogateescape' error handler is now
    used as a workaround for replacing the corrupted data.
  • 737_: [Windows] when the bitness of psutil and the target process was
    different cmdline() and cwd() could return a wrong result or incorrectly
    report an AccessDenied error.
  • 741_: [OpenBSD] psutil does not compile on mips64.
  • 751_: [Linux] fixed call to Py_DECREF on possible Null object.
  • 754_: [Linux] cmdline() can be wrong in case of zombie process.
  • 759_: [Linux] Process.memory_maps() may return paths ending with " (deleted)"
  • 761_: [Windows] psutil.boot_time() wraps to 0 after 49 days.
  • 764_: [NetBSD] fix compilation on NetBSD-6.x.
  • 766_: [Linux] net_connections() can't handle malformed /proc/net/unix file.
  • 767_: [Linux] disk_io_counters() may raise ValueError on 2.6 kernels and it's
    broken on 2.4 kernels.
  • 770_: [NetBSD] disk_io_counters() metrics didn't update.

3.4.2

=====

2016-01-20

Enhancements

  • 728_: [Solaris] exposed psutil.PROCFS_PATH constant to change the default
    location of /proc filesystem.

Bug fixes

  • 724_: [FreeBSD] psutil.virtual_memory().total is incorrect.
  • 730_: [FreeBSD] psutil.virtual_memory() crashes.

3.4.1

=====

2016-01-15

Enhancements

  • 557_: [NetBSD] added NetBSD support. (contributed by Ryo Onodera and
    Thomas Klausner)
  • 708_: [Linux] psutil.net_connections() and Process.connections() on Python 2
    can be up to 3x faster in case of many connections.
    Also psutil.Process.memory_maps() is slightly faster.
  • 718_: process_iter() is now thread safe.

Bug fixes

  • 714_: [OpenBSD] virtual_memory().cached value was always set to 0.
  • 715_: don't crash at import time if cpu_times() fail for some reason.
  • 717_: [Linux] Process.open_files fails if deleted files still visible.
  • 722_: [Linux] swap_memory() no longer crashes if sin/sout can't be determined
    due to missing /proc/vmstat.
  • 724_: [FreeBSD] virtual_memory().total is slightly incorrect.

3.3.0

=====

2015-11-25

Enhancements

  • 558_: [Linux] exposed psutil.PROCFS_PATH constant to change the default
    location of /proc filesystem.
  • 615_: [OpenBSD] added OpenBSD support. (contributed by Landry Breuil)

Bug fixes

  • 692_: [UNIX] Process.name() is no longer cached as it may change.

3.2.2

=====

2015-10-04

Bug fixes

  • 517_: [SunOS] net_io_counters failed to detect network interfaces
    correctly on Solaris 10
  • 541_: [FreeBSD] disk_io_counters r/w times were expressed in seconds instead
    of milliseconds. (patch by dasumin)
  • 610_: [SunOS] fix build and tests on Solaris 10
  • 623_: [Linux] process or system connections raises ValueError if IPv6 is not
    supported by the system.
  • 678_: [Linux] can't install psutil due to bug in setup.py.
  • 688_: [Windows] compilation fails with MSVC 2015, Python 3.5. (patch by
    Mike Sarahan)

3.2.1

=====

2015-09-03

Bug fixes

  • 677_: [Linux] can't install psutil due to bug in setup.py.

3.2.0

=====

2015-09-02

Enhancements

  • 644_: [Windows] added support for CTRL_C_EVENT and CTRL_BREAK_EVENT signals
    to use with Process.send_signal().
  • 648_: CI test integration for OSX. (patch by Jeff Tang)
  • 663_: [UNIX] net_if_addrs() now returns point-to-point (VPNs) addresses.
  • 655_: [Windows] different issues regarding unicode handling were fixed. On
    Python 2 all APIs returning a string will now return an encoded version of it
    by using sys.getfilesystemencoding() codec. The APIs involved are:
  • psutil.net_if_addrs()
  • psutil.net_if_stats()
  • psutil.net_io_counters()
  • psutil.Process.cmdline()
  • psutil.Process.name()
  • psutil.Process.username()
  • psutil.users()

Bug fixes

  • 513_: [Linux] fixed integer overflow for RLIM_INFINITY.
  • 641_: [Windows] fixed many compilation warnings. (patch by Jeff Tang)
  • 652_: [Windows] net_if_addrs() UnicodeDecodeError in case of non-ASCII NIC
    names.
  • 655_: [Windows] net_if_stats() UnicodeDecodeError in case of non-ASCII NIC
    names.
  • 659_: [Linux] compilation error on Suse 10. (patch by maozguttman)
  • 664_: [Linux] compilation error on Alpine Linux. (patch by Bart van Kleef)
  • 670_: [Windows] segfgault of net_if_addrs() in case of non-ASCII NIC names.
    (patch by sk6249)
  • 672_: [Windows] compilation fails if using Windows SDK v8.0. (patch by
    Steven Winfield)
  • 675_: [Linux] net_connections(); UnicodeDecodeError may occur when listing
    UNIX sockets.

3.1.1

=====

2015-07-15

Bug fixes

  • 603_: [Linux] ionice_set value range is incorrect. (patch by spacewander)
  • 645_: [Linux] psutil.cpu_times_percent() may produce negative results.
  • 656_: 'from psutil import *' does not work.

3.1.0

=====

2015-07-15

Enhancements

Bug fixes

  • 340_: [Windows] Process.open_files() no longer hangs. Instead it uses a
    thred which times out and skips the file handle in case it's taking too long
    to be retrieved. (patch by Jeff Tang, PR 597)
  • 627_: [Windows] Process.name() no longer raises AccessDenied for pids owned
    by another user.
  • 636_: [Windows] Process.memory_info() raise AccessDenied.
  • 637_: [UNIX] raise exception if trying to send signal to Process PID 0 as it
    will affect os.getpid()'s process group instead of PID 0.
  • 639_: [Linux] Process.cmdline() can be truncated.
  • 640_: [Linux] *connections functions may swallow errors and return an
    incomplete list of connnections.
  • 642_: repr() of exceptions is incorrect.
  • 653_: [Windows] Add inet_ntop function for Windows XP to support IPv6.
  • 641_: [Windows] Replace deprecated string functions with safe equivalents.

3.0.1

=====

2015-06-18

Bug fixes

  • 632_: [Linux] better error message if cannot parse process UNIX connections.
  • 634_: [Linux] Proces.cmdline() does not include empty string arguments.
  • 635_: [UNIX] crash on module import if 'enum' package is installed on python
    < 3.4.

3.0.0

=====

2015-06-13

Enhancements

  • 250_: new psutil.net_if_stats() returning NIC statistics (isup, duplex,
    speed, MTU).
  • 376_: new psutil.net_if_addrs() returning all NIC addresses a-la ifconfig.
  • 469_: on Python >= 3.4 IOPRIO_CLASS_* and *_PRIORITY_CLASS constants
    returned by psutil.Process' ionice() and nice() methods are enums instead of
    plain integers.
  • 581_: add .gitignore. (patch by Gabi Davar)
  • 582_: connection constants returned by psutil.net_connections() and
    psutil.Process.connections() were turned from int to enums on Python > 3.4.
  • 587_: Move native extension into the package.
  • 589_: Process.cpu_affinity() accepts any kind of iterable (set, tuple, ...),
    not only lists.
  • 594_: all deprecated APIs were removed.
  • 599_: [Windows] process name() can now be determined for all processes even
    when running as a limited user.
  • 602_: pre-commit GIT hook.
  • 629_: enhanced support for py.test and nose test discovery and tests run.
  • 616_: [Windows] Add inet_ntop function for Windows XP.

Bug fixes

  • 428_: [all UNIXes except Linux] correct handling of zombie processes;
    introduced new ZombieProcess exception class.
  • 512_: [BSD] fix segfault in net_connections().
  • 555_: [Linux] psutil.users() correctly handles ":0" as an alias for
    "localhost"
  • 579_: [Windows] Fixed open_files() for PID>64K.
  • 579_: [Windows] fixed many compiler warnings.
  • 585_: [FreeBSD] net_connections() may raise KeyError.
  • 586_: [FreeBSD] cpu_affinity() segfaults on set in case an invalid CPU
    number is provided.
  • 593_: [FreeBSD] Process().memory_maps() segfaults.
  • 606_: Process.parent() may swallow NoSuchProcess exceptions.
  • 611_: [SunOS] net_io_counters has send and received swapped
  • 614_: [Linux]: cpu_count(logical=False) return the number of physical CPUs
    instead of physical cores.
  • 618_: [SunOS] swap tests fail on Solaris when run as normal user
  • 628_: [Linux] Process.name() truncates process name in case it contains
    spaces or parentheses.

2.2.1

=====

2015-02-02

Bug fixes

  • 496_: [Linux] fix "ValueError: ambiguos inode with multiple PIDs references"
    (patch by Bruno Binet)

2.2.0

=====

2015-01-06

Enhancements

  • 521_: drop support for Python 2.4 and 2.5.
  • 553_: new examples/pstree.py script.
  • 564_: C extension version mismatch in case the user messed up with psutil
    installation or with sys.path is now detected at import time.
  • 568_: New examples/pidof.py script.
  • 569_: [FreeBSD] add support for process CPU affinity.

Bug fixes

  • 496_: [Solaris] can't import psutil.
  • 547_: [UNIX] Process.username() may raise KeyError if UID can't be resolved.
  • 551_: [Windows] get rid of the unicode hack for net_io_counters() NIC names.
  • 556_: [Linux] lots of file handles were left open.
  • 561_: [Linux] net_connections() might skip some legitimate UNIX sockets.
    (patch by spacewander)
  • 565_: [Windows] use proper encoding for psutil.Process.username() and
    psutil.users(). (patch by Sylvain Mouquet)
  • 567_: [Linux] in the alternative implementation of CPU affinity PyList_Append
    and Py_BuildValue return values are not checked.
  • 569_: [FreeBSD] fix memory leak in psutil.cpu_count(logical=False).
  • 571_: [Linux] Process.open_files() might swallow AccessDenied exceptions and
    return an incomplete list of open files.

2.1.3

=====

2014-09-26

  • 536_: [Linux]: fix "undefined symbol: CPU_ALLOC" compilation error.

2.1.2

=====

2014-09-21

Enhancements

  • 407_: project moved from Google Code to Github; code moved from Mercurial
    to Git.
  • 492_: use tox to run tests on multiple python versions. (patch by msabramo)
  • 505_: [Windows] distribution as wheel packages.
  • 511_: new examples/ps.py sample code.

Bug fixes

  • 340_: [Windows] Process.get_open_files() no longer hangs. (patch by
    Jeff Tang)
  • 501_: [Windows] disk_io_counters() may return negative values.
  • 503_: [Linux] in rare conditions Process exe(), open_files() and
    connections() methods can raise OSError(ESRCH) instead of NoSuchProcess.
  • 504_: [Linux] can't build RPM packages via setup.py
  • 506_: [Linux] python 2.4 support was broken.
  • 522_: [Linux] Process.cpu_affinity() might return EINVAL. (patch by David
    Daeschler)
  • 529_: [Windows] Process.exe() may raise unhandled WindowsError exception
    for PIDs 0 and 4. (patch by Jeff Tang)
  • 530_: [Linux] psutil.disk_io_counters() may crash on old Linux distros
    (< 2.6.5) (patch by Yaolong Huang)
  • 533_: [Linux] Process.memory_maps() may raise TypeError on old Linux distros.

2.1.1

=====

2014-04-30

Bug fixes

  • 446_: [Windows] fix encoding error when using net_io_counters() on Python 3.
    (patch by Szigeti Gabor Niif)
  • 460_: [Windows] net_io_counters() wraps after 4G.
  • 491_: [Linux] psutil.net_connections() exceptions. (patch by Alexander Grothe)

2.1.0

=====

2014-04-08

Enhancements

  • 387_: system-wide open connections a-la netstat.

Bug fixes

  • 421_: [Solaris] psutil does not compile on SunOS 5.10 (patch by Naveed
    Roudsari)
  • 489_: [Linux] psutil.disk_partitions() return an empty list.

2.0.0

=====

2014-03-10

Enhancements

  • 424_: [Windows] installer for Python 3.X 64 bit.
  • 427_: number of logical and physical CPUs (psutil.cpu_count()).
  • 447_: psutil.wait_procs() timeout parameter is now optional.
  • 452_: make Process instances hashable and usable with set()s.
  • 453_: tests on Python < 2.7 require unittest2 module.
  • 459_: add a make file for running tests and other repetitive tasks (also
    on Windows).
  • 463_: make timeout parameter of cpu_percent* functions default to 0.0 'cause
    it's a common trap to introduce slowdowns.
  • 468_: move documentation to readthedocs.com.
  • 477_: process cpu_percent() is about 30% faster. (suggested by crusaderky)
  • 478_: [Linux] almost all APIs are about 30% faster on Python 3.X.
  • 479_: long deprecated psutil.error module is gone; exception classes now
    live in "psutil" namespace only.

Bug fixes

  • 193_: psutil.Popen constructor can throw an exception if the spawned process
    terminates quickly.
  • 340_: [Windows] process get_open_files() no longer hangs. (patch by
    jtangvahna.net)
  • 443_: [Linux] fix a potential overflow issue for Process.set_cpu_affinity()
    on systems with more than 64 CPUs.
  • 448_: [Windows] get_children() and ppid() memory leak (patch by Ulrich
    Klank).
  • 457_: [POSIX] pid_exists() always returns True for PID 0.
  • 461_: namedtuples are not pickle-able.
  • 466_: [Linux] process exe improper null bytes handling. (patch by
    Gautam Singh)
  • 470_: wait_procs() might not wait. (patch by crusaderky)
  • 471_: [Windows] process exe improper unicode handling. (patch by
    alexmroja.net)
  • 473_: psutil.Popen.wait() does not set returncode attribute.
  • 474_: [Windows] Process.cpu_percent() is no longer capped at 100%.
  • 476_: [Linux] encoding error for process name and cmdline.

API changes

For the sake of consistency a lot of psutil APIs have been renamed.
In most cases accessing the old names will work but it will cause a
DeprecationWarning.

  • psutil.* module level constants have being replaced by functions:

+-----------------------+-------------------------------+
| Old name | Replacement |
+=======================+===============================+
| psutil.NUM_CPUS | psutil.cpu_cpunt() |
+-----------------------+-------------------------------+
| psutil.BOOT_TIME | psutil.boot_time() |
+-----------------------+-------------------------------+
| psutil.TOTAL_PHYMEM | psutil.virtual_memory().total |
+-----------------------+-------------------------------+

  • Renamed psutil.* functions:

+--------------------------+-------------------------------+
| Old name | Replacement |
+==========================+===============================+
| - psutil.get_pid_list() | psutil.pids() |
+--------------------------+-------------------------------+
| - psutil.get_users() | psutil.users() |
+--------------------------+-------------------------------+
| - psutil.get_boot_time() | psutil.boot_time() |
+--------------------------+-------------------------------+

  • All psutil.Process get_* methods lost the get_ prefix.
    get_ext_memory_info() renamed to memory_info_ex().
    Assuming "p = psutil.Process()":

+--------------------------+----------------------+
| Old name | Replacement |
+==========================+======================+
| p.get_children() | p.children() |
+--------------------------+----------------------+
| p.get_connections() | p.connections() |
+--------------------------+----------------------+
| p.get_cpu_affinity() | p.cpu_affinity() |
+--------------------------+----------------------+
| p.get_cpu_percent() | p.cpu_percent() |
+--------------------------+----------------------+
| p.get_cpu_times() | p.cpu_times() |
+--------------------------+----------------------+
| p.get_ext_memory_info() | p.memory_info_ex() |
+--------------------------+----------------------+
| p.get_io_counters() | p.io_counters() |
+--------------------------+----------------------+
| p.get_ionice() | p.ionice() |
+--------------------------+----------------------+
| p.get_memory_info() | p.memory_info() |
+--------------------------+----------------------+
| p.get_memory_maps() | p.memory_maps() |
+--------------------------+----------------------+
| p.get_memory_percent() | p.memory_percent() |
+--------------------------+----------------------+
| p.get_nice() | p.nice() |
+--------------------------+----------------------+
| p.get_num_ctx_switches() | p.num_ctx_switches() |
+--------------------------+----------------------+
| p.get_num_fds() | p.num_fds() |
+--------------------------+----------------------+
| p.get_num_threads() | p.num_threads() |
+--------------------------+----------------------+
| p.get_open_files() | p.open_files() |
+--------------------------+----------------------+
| p.get_rlimit() | p.rlimit() |
+--------------------------+----------------------+
| p.get_threads() | p.threads() |
+--------------------------+----------------------+
| p.getcwd() | p.cwd() |
+--------------------------+----------------------+

  • All psutil.Process set_* methods lost the set_ prefix.
    Assuming "p = psutil.Process()":

+----------------------+---------------------------------+
| Old name | Replacement |
+======================+=================================+
| p.set_nice() | p.nice(value) |
+----------------------+---------------------------------+
| p.set_ionice() | p.ionice(ioclass, value=None) |
+----------------------+---------------------------------+
| p.set_cpu_affinity() | p.cpu_affinity(cpus) |
+----------------------+---------------------------------+
| p.set_rlimit() | p.rlimit(resource, limits=None) |
+----------------------+---------------------------------+

  • Except for 'pid' all psutil.Process class properties have been turned into
    methods. This is the only case which there are no aliases.
    Assuming "p = psutil.Process()":

+---------------+-----------------+
| Old name | Replacement |
+===============+=================+
| p.name | p.name() |
+---------------+-----------------+
| p.parent | p.parent() |
+---------------+-----------------+
| p.ppid | p.ppid() |
+---------------+-----------------+
| p.exe | p.exe() |
+---------------+-----------------+
| p.cmdline | p.cmdline() |
+---------------+-----------------+
| p.status | p.status() |
+---------------+-----------------+
| p.uids | p.uids() |
+---------------+-----------------+
| p.gids | p.gids() |
+---------------+-----------------+
| p.username | p.username() |
+---------------+-----------------+
| p.create_time | p.create_time() |
+---------------+-----------------+

  • timeout parameter of cpu_percent* functions defaults to 0.0 instead of 0.1.
  • long deprecated psutil.error module is gone; exception classes now live in
    "psutil" namespace only.
  • Process instances' "retcode" attribute returned by psutil.wait_procs() has
    been renamed to "returncode" for consistency with subprocess.Popen.

Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 🤖

@pyup-bot pyup-bot mentioned this pull request Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant