Skip to main content
debrfstats
==========

Debian RFS statistics software.

This is a collection of scripts to generate statistics of a RFS queue in Debian.

Look into main.py file for examples.

# Requires

SOAPpy, dateutil, requests, and Python 2.7 :cry:.

# How to use

Imports:
```python
from debrfstats.RFSStats import RFSStats
from debrfstats.get_done_date import get_done_date
from datetime import date
```

Check done_date of bug:

```python
print(get_done_date(657783))
```

Do not use cache:

```python
print(get_done_date(759603, nocache=True))
```

Make some stats. First create an object - it can last, all RFS bugs are downloaded using SOAP.

```python
stats = RFSStats()
```

Calculate global MTTGS (from 2012-1-1 until now()):

```python
print(stats.get_global_mttgs())
```

Calculate global MTTGS in range:

```python
print(stats.get_global_mttgs(end=date(2014-1-1))
print(stats.get_global_mttgs(start=date(2013-1-1), end=date(2014-1-1))
```

Get closed bugs on e.g. 2013-9-24:


```python
for i in stats.get_closed_by_day(date(2013,9,24)):
print(i)
```


Get range stats csv to stdout `date,open,done,opened,closed,mttgs`:

```python
for i in stats.get_range_stats(date(2012,1,1), date.today()):
print(i)
```

Download files

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

Source Distribution

debrfstats-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file debrfstats-0.0.1.tar.gz.

File metadata

  • Download URL: debrfstats-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for debrfstats-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bd5f826cb65cf13f5b85834698a6ada79e03d40d4d3b4b3d0caebec2a6705998
MD5 530d60d5a557321f51a0c1be46178de5
BLAKE2b-256 216bf599ac91533365dfca4f99593f8e58abfb54e2bba343d89becf7f59f17e4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page