Skip to main content

ruper_detector

Gure bulegoan askotan edukitzen dugu EITB Musika jarrita. Eta askotan esan ohi dugu Ruper Ordorikarenganako lerratze bat duela irrati horrek.

Orain gainera EITB Euskal Kantak irratia ere sortu du EITBk, eta hor ere Ruper asko entzungo den susmoa dugu.

Gainera gure bulegoa Ruperren fanez beteta dago, eta beste batzuri logurea besterik ez digu ematen.

Programatxo honek, egunaren zein ordutan lo hartuko dugun abisatzen digu Ruper noiz jarriko duten esanez.

Broma bat da, hartu umorez!

Instalazioa eta erabilera

Ruper detektorea Python programazio lengoaiarako egindako programa da. Adi, pythonen 3. bertsioarekin bakarrik funtzionatzen du-eta. Instalatzeko beste edozein Python liburutegi bezala instalatu behar da. Gaur egun pip tresna erabiliz egin dezakezu hori:

$ pip install ruper_detector

Hori eginda, zure sisteman script bat instalatuko da, ruper_detector. Bere erabilera oso erraza da: pasatu parametro bezala zein datan detektatu nahi duzun Ruper baina UUUUHHEE formatua erabiliz, adibidez 20131108, horrela:

$ ruper_detector 20131108

Pantailan bertan inprimatuko ditu emaitzak:

$ ruper_detector 20131108
  Ruper detektatzen...
  20200918
  Ondo!!! Gaur Ruper 7 aldiz entzungo dugu!! Hauek dira orduak:
  EITB Musika 02:37:58 ETXE ALDERA
  EITB Musika 05:07:55 GALTZETAN GORDETZEKO KOBLAK
  EITB Euskal Kantak 05:42:12 EGIN KONTU
  EITB Musika 12:19:12 ZALDIAK NEGARREZ (LIVE)
  EITB Euskal Kantak 14:51:49 EZ DA POSIBLE (LIVE)
  EITB Musika 19:53:45 NOR DA (LIVE)
  EITB Euskal Kantak 21:25:31 NERE FURGOI BELTZA

Beste aukera bat, programa hau zure garapen baten integratzea da. Horretarako instalatu programa lehen esandako moduan (pip install ruper_detector) edo zure garapenaren dependentziak instalatzeko erabiltzen duzun sisteman (gure kasuan zc.buildout darabilgun horretarako), eta ondoren inportatu Ruper detektorea zure garapenean:

>>> from ruper_detector import detektorea
>>> kantak = detektorea('20201118')
>>> from pprint import pprint
>>> pprint(kantak)
[{'artista': 'ORDORIKA RUPER',
  'irratia': 'EITB Musika',
  'kanta': 'ETXE ALDERA',
  'ordua': '02:37:58'},
{'artista': 'ORDORIKA RUPER',
  'irratia': 'EITB Musika',
  'kanta': 'GALTZETAN GORDETZEKO KOBLAK',
  'ordua': '05:07:55'},
{'artista': 'ORDORIKA RUPER',
  'irratia': 'EITB Euskal Kantak',
  'kanta': 'EGIN KONTU',
  'ordua': '05:42:12'},
{'artista': 'ORDORIKA RUPER',
  'irratia': 'EITB Musika',
  'kanta': 'ZALDIAK NEGARREZ (LIVE)',
  'ordua': '12:19:12'},
{'artista': 'ORDORIKA RUPER',
  'irratia': 'EITB Euskal Kantak',
  'kanta': 'EZ DA POSIBLE (LIVE)',
  'ordua': '14:51:49'},
{'artista': 'ORDORIKA RUPER',
  'irratia': 'EITB Musika',
  'kanta': 'NOR DA (LIVE)',
  'ordua': '19:53:45'},
{'artista': 'ORDORIKA RUPER',
  'irratia': 'EITB Euskal Kantak',
  'kanta': 'NERE FURGOI BELTZA',
  'ordua': '21:25:31'}]

Adibide bat

Ruper detektorearen adibide bat, helbide honetan duzue: http://www.codesyntax.com/eu/labs/ruper_detector

Changelog

2.0.1 (2020-09-18)

  • Update README. [erral]

  • Remove debugging prints. [erral]

2.0 (2020-09-18)

  • Python3 support. [erral]

1.3 (2019-12-11)

  • Update to work with the new ‘EITB Euskal Kantak’ radio. [erral]

1.2 (2015-08-07)

  • Add from ruper_detector import detektorea shortcut [erral]

  • Change to www.eitb.eus [erral]

1.1 (2013-11-08)

  • Dokumentazio apur bat [erral]

1.0 (2013-11-07)

  • First version [erral]

Metadata

Release files for ruper-detector 2.0.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 ruper-detector 2.0.1
File Size Uploaded Provenance Actions
ruper_detector-2.0.1.tar.gz 16.0 kB Without provenance Details for ruper_detector-2.0.1.tar.gz

Release files / ruper_detector-2.0.1.tar.gz

Download URL ruper_detector-2.0.1.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9eb867ab30b66bff3fe93428121677730df309c4103c6fd079b408bb82d89606
BLAKE2b-256 checksum
How to use checksums
48ec567f49034f5664fd1147123d22985e46be4f793a2feb2c7b2f22261f9262
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Security for ruper-detector 2.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.

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