Skip to main content

sorm_location_asn1

sorm_location_asn1 — модуль, содержащий набор классов, для формирования местоположения в соответствии с требованиями Приказа Минкомсвязи № 645.

Установка

Установка через pip :

pip install sorm_location_asn1

Использование

Модуль sorm_location_asn1 содержит 2 класса для кодирования местоположения: SormGsmLocation для местоположения СПРС стандартов GSM и UMTS, и SormLteLocation для местоположения СПРС стандарта LTE. Оба класса наследуются от абстрактного класса BaseLocation.

Для получение кодированного местоположения достаточно создать объект нужного класса и вызвать его метод .encode()

from sorm_location_asn1 import SormGsmLocation, SormLteLocation

sorm_gsm_location = SormGsmLocation(
    mcc=250,
    mnc=1,
    lac=1111,
    cell_id=2222,
    sector=1,
    ta=1,
    time_delta=12300
)
raw_gsm_location = sorm_gsm_location.encode()
print(raw_gsm_location.hex())

sorm_lte_location = SormLteLocation(
    mcc=250,
    mnc=1,
    e_utran_cell_id=2892309,
    ta=1282,
    time_delta=12300
)
raw_lte_location = sorm_lte_location.encode()
print(raw_lte_location.hex())

Release files for sorm-location-asn1 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sorm-location-asn1 0.7.1
File Size Uploaded
sorm_location_asn1-0.7.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sorm-location-asn1 0.7.1
File Interpreter ABI Platform
sorm_location_asn1-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / sorm_location_asn1-0.7.1.tar.gz

Download URL sorm_location_asn1-0.7.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0c2df48fb2493cccdc9bec2ce263221fd31441eb7c78fe474adcda5947d1b737
BLAKE2b-256 checksum
How to use checksums
c1690631a12ee2cbc6ae3b45f0fad704a9b87cd9a575787e4b3b75549285157a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

Release files / sorm_location_asn1-0.7.1-py3-none-any.whl

Download URL sorm_location_asn1-0.7.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af841d5597f1fcaa3aadb3d802f8844fe949c517fa64f84a81a162bb1dd434fa
BLAKE2b-256 checksum
How to use checksums
c1ea67e996e5cf517f5dcfac0f2bdf3112ae226cdd7ea4096adf49b327c15e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page