---------------
.. image:: https://travis-ci.org/sitch-io/arfcn-reference.svg?branch=master
:target: https://travis-ci.org/sitch-io/arfcn-reference
.. image:: https://codeclimate.com/github/sitch-io/arfcn-reference/badges/coverage.svg
:target: https://codeclimate.com/github/sitch-io/arfcn-reference/coverage
:alt: Test Coverage
.. image:: https://codeclimate.com/github/sitch-io/arfcn-reference/badges/gpa.svg
:target: https://codeclimate.com/github/sitch-io/arfcn-reference
:alt: Code Climate
.. image:: https://codeclimate.com/github/sitch-io/arfcn-reference/badges/issue_count.svg
:target: https://codeclimate.com/github/sitch-io/arfcn-reference
:alt: Issue Count
ARFCN reference Python module
=============================
This Python module contains a reference for all GSM channels by ARFCN.
Installation:
_____________
pip install arfcnreference
Usage:
______
Get a channel by uplink frequency:
::
>>> import arfcnreference
>>> arf_ref = arfcnreference.ArfcnReference()
>>> arf_ref.get_for_uplink(890.2)
{'band': 'GSM-900', 'downlink': 935.2, 'channel': 1}
>>> arf_ref.get_for_downlink(887.4)
{'band': 'EGSM-900', 'uplink': 887.4, 'channel': 1011}
Frequencies are returned in MHz.
Getting channels for a range of frequencies:
::
>>> for x in arf_ref.arfcn_for_downlink_range(842, 942):
... print x
...
{'1853': {'band': 'GSM-1900', 'uplink': 1853, 'channel': 526}}
{'1867': {'band': 'GSM-1900', 'uplink': 1867, 'channel': 596}}
{'1855': {'band': 'GSM-1900', 'uplink': 1855, 'channel': 536}}
{'1868': {'band': 'GSM-1900', 'uplink': 1868, 'channel': 601}}
(and so on)
Getting all channels in a band:
::
>>> for x in arf_ref.channels_in_band("GSM-850"):
... print x
...
{'downlink': 869.2, 'uplink': 824.2, 'channel': 128}
{'downlink': 869.4, 'uplink': 824.4, 'channel': 129}
{'downlink': 869.6, 'uplink': 824.6, 'channel': 130}
{'downlink': 869.8, 'uplink': 824.8, 'channel': 131}
{'downlink': 870, 'uplink': 825, 'channel': 132}
(and so on)
Testing:
________
run `py.test` from the root of this repo.
Special thanks:
_______________
The reference information was lifted, with gratitude, from http://gnuradio.org/redmine/attachments/115/all_gsm_channels_arfcn.txt
Changelog
=========
v0.1
----
New
~~~
- First working commit, provides GSM channel info. Queryable by
frequency, channel number, band, and range of frequencies. [Ash
Wilson]
Other
~~~~~
- Initial commit. [Ash Wilson]
Metadata
Release files for arfcnreference 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| arfcnreference-0.1.tar.gz | 11.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arfcnreference-0.1-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 24.2 kB
Release files / arfcnreference-0.1.tar.gz
| Download URL | arfcnreference-0.1.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5de6957f44e81721757ff23eb90810f8c3ff1c3e5a35907d32efabfb9a4aa98e
|
|
BLAKE2b-256 checksum How to use checksums |
2ac7e2e13a1835a30b7ab800284f109eb24ad4e85f792b9edd2fd7f8fc81ae02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / arfcnreference-0.1-py2-none-any.whl
| Download URL | arfcnreference-0.1-py2-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
2e7b4a03dec7702ae01956e954b4760cd7962bec55c77e966557068d51d9ed88
|
|
BLAKE2b-256 checksum How to use checksums |
19afe0550306551cf39e5a9fbd5183661bdc152eaceef9ecb3850fb47a39f275
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for arfcnreference 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.